JSON字符串对象相互转换

JSON.parse()    - >将字符串转成json对象。

JSON.stringify()  - > 将对象、数组转换成字符串

猜你喜欢

转载自www.cnblogs.com/xm16/p/10359987.html
今日推荐