json对象

Posted on 2018-08-08 11:10  杭州丑八怪  阅读(50)  评论(0编辑  收藏  举报
var jsonStr = " { a:1,b:2,c:3 }";
var jsonObj = eval(jsonStr);
alert(jsonObj.a)