标签:style blog color ar div log js text
var jsontext = ‘{"firstname":"Jesper","surname":"Aaberg","phone":["555-0100","555-0120"]}‘; var contact = JSON.parse(jsontext); document.write(contact.surname + ", " + contact.firstname + ", "+ contact.phone);
JSON.parse是用来把JSON字符串转换成对象的
JSON.parse这个是啥?,布布扣,bubuko.com
标签:style blog color ar div log js text
原文地址:http://www.cnblogs.com/zouer/p/3897507.html