JSON.stringify 语法实例讲解

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 @ 2015-03-15 10:21  知行一体2  阅读(370)  评论(1)    收藏  举报