javascript 对象和字符串互转

Object  =>  String :  

 1 console.log(JSON.stringify(e)); 

String => Object : 

 1 JSON.parse(str) 

posted @ 2017-08-09 22:54  GoodByeZ  阅读(135)  评论(0编辑  收藏  举报