如果 JSON 只是一種數據格式,那么「JSON 對象」的類名到底叫什么? let i = { "hello": 123 } console.info(i.constructor.name) // Object i = new Date(); console.info(i.constructor.name) // Date突然很糾結這個問題。JSON 對象輸出的名稱(Object)難道表示,JSON 格式的對象的名字,就是對象?
「JSON 對象」的類名到底叫什么?
蝴蝶不菲
2019-03-16 19:14:44