回答編集履歴
1
調整
test
CHANGED
@@ -3,5 +3,13 @@
|
|
3
3
|
<div id="output"></div>
|
4
4
|
<script>
|
5
5
|
output.textContent={}
|
6
|
+
console.log({}.toString());//無理やり文字列化すると[Object Object]
|
7
|
+
console.log(JSON.stringify({});//文字列「{}」
|
6
8
|
</script>
|
7
9
|
```
|
10
|
+
|
11
|
+
```javascript
|
12
|
+
console.log({}.toString());//無理やり文字列化すると"[object object]"
|
13
|
+
console.log(JSON.stringify({}));//文字列"{}"
|
14
|
+
|
15
|
+
```
|