js对象与字符串的想到转换

js

JSON.stringify(jsObj);   对象转字符串
JSON.parse(str);  字符串转对象

猜你喜欢

转载自www.cnblogs.com/zejin2008/p/8973633.html