javascript JSON数据序列化和反序列化

let a=JSON.parse('{"a":1}')//
console.log(a)//输出一下内容
/*
{
    "a": 1
}
*/

let b= JSON.stringify(a)//'{"a":1}'
console.log(b)

 

posted @ 2025-07-08 16:36  白嫖帝  阅读(21)  评论(0)    收藏  举报