JSON.stringify(jsObj, null, "\t"); // 缩进一个tabJSON.stringify(jsObj, null, 4); // 缩进4个空格对象
还有这个console.dir();可以输出对象的解析格式string