Json數據到js對象:?JSON . parse();
& lt腳本& gt
var?obj?=?{
答?:?壹個,
b?:?' b ',
c?:?' c '
};
var?json?=?JSON . stringify(obj);
console . log(JSON);
console.log(類型?JSON);
console . log('-');
var?obj2?=?JSON . parse(JSON);
console . log(obj 2);
console.log(類型?obj 2);
& lt/script & gt;