如上圖所示,要有如些效果json
前臺HTML代碼ui
<select id="ShareTo" name="ShareTo" class="easyui-combotree" data-options="url:'/BlueVacation/Controller/ScheduleHandler.ashx?op=tree'" multiple ></select>url
string GetDepaOfUsersTree() { string json = null; if (HttpContext.Current.Cache["userTree"] != null) { json = HttpContext.Current.Cache["userTree"].ToString(); } else { var list = DepartmentBll.Instance.GetDepaOfUsersTree(); json = JsonConvert.SerializeObject(list); HttpContext.Current.Cache["userTree"] = json; } return json; }