代码功能: 1.datagrid 的表头由后台生成,可以配置在数据库 2.datagrid 的列绑定数据 支撑嵌套对象 $(function() { var columns = new Array(); var cols = new Array(); var colData = new Object(); $.post("url","params",function(data){ //动态生成表头开始 if(data.xxxx != null){ $.each(da…
public static class WebApiConfig { public static void Register(HttpConfiguration config) { var setting = System.Configuration.ConfigurationManager.AppSettings; var cors = new EnableCorsAttribute("http://192.168.3.15:3000,http://192.168.3.15:3002"…