1.1:下拉框条件:后台取得ViewBag传给前台 MonitorController: public ActionResult BigData(): //下拉框筛选条件 var result = MonitorBLL.GetSoilPlantCountByCode(loginSoil); var r = (object)result.data; ViewBag.soilplantcount = r; // loginSoil是登录用户 public static ResponseModel G…
1. js动态加载元素并设置属性 摘自(http://www.liangshunet.com/ca/201408/336848696.htm) <div id="parent"></div> function addElementDiv(obj) { var parent = document.getElementById(obj); //添加 div var div = document.createElement("div"); //设…