美文网首页
JS Object 转换成字符串

JS Object 转换成字符串

作者: 冰J冰 | 来源:发表于2016-04-20 11:27 被阅读84次
    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