adidge 发表于 2013-1-29 08:56:42

javascript字符串转json对象

var str='{"a":"b"}'; str=eval('('+str+')')alert(str.a);
页: [1]
查看完整版本: javascript字符串转json对象