JS Object 转换成字符串
2016-04-20 本文已影响84人
冰J冰
So as long you're not dealing with IE6/7 you can do it just as easily as that:
var j={"name":"binchen"};JSON.stringify(j); // '{"name":"binchen"}'
So as long you're not dealing with IE6/7 you can do it just as easily as that:
var j={"name":"binchen"};JSON.stringify(j); // '{"name":"binchen"}'