首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

JSON.stringify(value [, replacer] [, space]) 步骤

2012-11-23 
JSON.stringify(value [, replacer] [, space]) 方法JSON.stringify(value [, replacer] [, space]) 序列

JSON.stringify(value [, replacer] [, space]) 方法
JSON.stringify(value [, replacer] [, space]) 序列化对象为Json数据类型,第一个参数是必填的,第二个参数是可选的,可以是方法或者是数组。

var student = new Object();student.name = "Lanny";student.age = "25";student.location = "China";alert(student);//“object”--"object"--"object"

热点排行