摘要: 1.颜色插件,比用css方便些//1.插件编写 ;(function ($) { $.fn.extend({ "color":function(value){ return this.css("color",value); } }); })(jQuery); //2.插件应用 $(function () { $("div:eq(1)").color("red"); });1.表格... 阅读全文
posted @ 2013-09-23 11:26 stevejson 阅读(283) 评论(0) 推荐(1) 编辑
摘要: 方法一:将DataTable数据拼接成json字符串,方法如下: /// /// dataTable转换成Json格式 /// /// /// public static string DataTable2Json(System.Data.DataTable dt) { StringBuilder jsonBuilder = new StringBuilder(); jsonBuilder.Append("{\"Name\":\"" + ... 阅读全文
posted @ 2013-09-23 11:18 stevejson 阅读(530) 评论(0) 推荐(1) 编辑