JSON.stringify 语法实例讲解 字符串

语法: 
JSON.stringify(value [, replacer] [, space]) 

var student = new Object(); 
student.name = "Lanny"; 
student.age = "25"; 
student.location = "China"; 
var json = JSON.stringify(student); 
alert(student); 

 

转之:http://www.jb51.net/article/29893.htm

posted @ 2016-07-05 15:16  MAKE-IN-LEMON  阅读(365)  评论(0编辑  收藏  举报