01 2011 档案

jqeury eval 字符串 转换json
摘要:前台页面$.ajax({ type: "post", contentType: "application/json", url: "../WebForm1.aspx/GetRightsStr", dataType: "json", success: function (msg) { alert(msg.d); var data = eval("(" + msg.d + ")"); $.each(data.rights, function (index, item) { alert(item.RightsName); }); }, error: function (e, s, d) { aler 阅读全文

posted @ 2011-01-17 19:15 losty 阅读(1009) 评论(2) 推荐(0)