校验obj是否能被json.stringify

日期:2022-04-07 01:33:21 人气:1

校验obj是否能被json.stringify

var student = new Object();
student.name = "柯乐义";
student.age = "25";
student.location = "广州";
var json = JSON.stringify(student);
document.writeln('JSON
    A+
热门评论