摘要: 1、从MVC返回的Json数据如下:2、下面是客户端实现的示例:$.post("/admin/GetPermissionsForRole", function (data,status) {if (status == "success") { var ghtml = ""; $.each... 阅读全文
posted @ 2015-01-07 17:24 James·wang 阅读(21921) 评论(0) 推荐(2)
摘要: var arr = [ "one", "two", "three", "four"]; $.each(arr, function(){ alert(this); }); 上面这个each输出的结果分别为:one,two,three,fourvar arr = ... 阅读全文
posted @ 2015-01-07 12:16 James·wang 阅读(2367) 评论(0) 推荐(0)
摘要: 注意必须要做强类型转换,不然不能使用lambda表达式进行筛选。 再比如: 阅读全文
posted @ 2015-01-07 09:27 James·wang 阅读(1070) 评论(0) 推荐(0)