json數據:一種輕量級的標准數據的交換格式
各種語言數據傳輸的一種格式
let s = '[1, 2, 3, 4]'; let f = JSON.parse(s); //反序列化 console.log(f, typeof f); let s1 = ['a', 'b', 'c']; let f1 = JSON.stringify(s1); // 序列化 console.log( f1, typeof f1);
json數據:一種輕量級的標准數據的交換格式
各種語言數據傳輸的一種格式
let s = '[1, 2, 3, 4]'; let f = JSON.parse(s); //反序列化 console.log(f, typeof f); let s1 = ['a', 'b', 'c']; let f1 = JSON.stringify(s1); // 序列化 console.log( f1, typeof f1);
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。