<html>
<body>
<h1>使用 <em>space</em> 参数</h1>
<p>为每个空格插入 10 个空格字符:</p>
<pre id="demo"></pre>
<script>
var obj = { "name":"Bill", "age":"19", "city":"Seattle"};
var text = JSON.stringify(obj, null, 10);
document.getElementById("demo").innerHTML = text;
console.log(text);
</script>
</body>
</html>