标签:style blog color ar div sp 代码 log on
var strArray="[{"message1":{ "id": "-1","content": "this is a test str to Array"}}]";//测试字符串 var strArrayObj=eval(str)//返回是数组对象 var strJson=‘{"message1":{ "id": "-1","content": "this is a test str to Array"}}‘;//测试字符串 var strJsonObj=eval("("+strJson+")");//返回一个json对象
标签:style blog color ar div sp 代码 log on
原文地址:http://www.cnblogs.com/heidsoft/p/3979392.html