js 解析 json $("#testJson").click(function () { var $json = "[{name:'张三',age:'12'},{name:'李四',age:15}]"; var test = eval($json); alert(test[1].age);//15 }); /// <summary> ///上传 /// </summary> public class PicUploadHander : IHttpHandler { public void ProcessRequest(HttpContext context) { string Msg = "[{html:'上传成功',status:'success'}]"; context.Response.Write(Msg); } } $('#from1').ajaxSubmit({ success: function (html, status) { var result = html.replace("<pre", ""); result = result.replace("</pre>", ""); result = result.replace("</PRE>", ""); result = result.replace("</PRE>", ""); var array = result.split('>'); var r = eval(array[1]); var statu=r[0].status; }