在Linux内核中有一个宏_stringify,在include/linux/stringify.h定义如下: ifndef_LINUX_STRINGIFY_H#define_LINUX_STRINGIFY_H Indirect stringification.Doing two levels allows the parameter to be a*macro ...
var student&61;new Object();student.name&61;34;Lanny&34;student.age&61;...JSON.stringify(student);alert(json);alert(student);我们不用这个函数&xff0c;而直接alert(student)&xff0c;结果如下&xff1a;