摘要: var str = '{"name": "tom","age": 12,"sex": "man"}'; var obj = eval("("+str+")"); console.log(obj); // {name: "tom", age: 12, sex: "man"} console.log(typeof obj); // object 阅读全文
posted @ 2018-07-17 17:39 asimpleday 阅读(203) 评论(0) 推荐(0) 编辑