标签:ar sp java on bs as nbsp javascript js
1. 互相转换
JSON.stringify(jsonobj) json对象转化为string
JSON.parse(string) string转化为json,注意{“name”:"hxy","sex":"f"} key与value都要用双引号包起来!!!
2. 类似
eval(boolobj) 将bool 对象转化为string
标签:ar sp java on bs as nbsp javascript js
原文地址:http://www.cnblogs.com/huxiaoyun90/p/4158111.html