var jsonstring='[{"OrderId" : "or0000000012","CustomerName" : "张雪飞","Phone" : "15823232323","Address" : "东大街 3-659","ClothesMsg" : "","SubmitTime" : "2012/5/17 7:07:02","Status" : "1"},
{"OrderId" : "or0000000011","CustomerName" : "小米","Phone" : "13812345678","Address" : "西大街6-5-6","ClothesMsg" : "","SubmitTime" : "2012/5/17 6:50:39","Status" : "1"}]'
result=$.parseJSON(jsonstring);
$.each(result, function (i, n) {
alert(n.CustomerName);
});
弹出的是undefined的,不知道什么原因,试了了很多方式?之前这样写是没问题的
慕仙森
叮当猫咪
撒科打诨