var a = {
"title": 'good', "name": "ddd", "age": 16
};
//序列化对象
console.log(JSON.stringify(a));
//反序列化对象
var newa = JSON.parse(JSON.stringify(a));
console.log(newa);
网友回复
var a = {
"title": 'good', "name": "ddd", "age": 16
};
//序列化对象
console.log(JSON.stringify(a));
//反序列化对象
var newa = JSON.parse(JSON.stringify(a));
console.log(newa);
网友回复