var student = new Object();
student.name = "张三";
student.age = "25";
student.location = "China";
var json = JSON.stringify(student);
document.location = "object:(" + json + ")";
JS将对象转化为字符串
最新推荐文章于 2025-10-10 22:47:54 发布
var student = new Object();
student.name = "张三";
student.age = "25";
student.location = "China";
var json = JSON.stringify(student);
document.location = "object:(" + json + ")";
94

被折叠的 条评论
为什么被折叠?