js Json与对象、数组转化

对象、数组转json

json = JSON.stringify(obj)

json 转对象、数组

arr = JSON.parse(json)

猜你喜欢

转载自www.cnblogs.com/zsczsc/p/9563223.html