function test1(){
person=new Object();
person.firstname="Bill";
person.lastname="Gates";
person.age=56;
person.eyecolor="blue";
console.log(JSON.stringify(person));
}
javaScript对象(object)转换为JSON格式
最新推荐文章于 2024-06-22 20:25:10 发布