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"}'
本文标题:JS Object 转换成字符串
本文链接:https://www.haomeiwen.com/subject/kkmzlttx.html
网友评论