JS Object 转换成字符串

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 转换成字符串)