3
-a功能下面是谷歌開發者控制檯爲什麼typeof運算對象,字符串,數字...在Javascript
typeof Object // type of Object is function (most confusing part).
"function" //Same fot all build-in types
Object.constructor
function Function(){[native code]}// Why not function Object()?
Object.hasOwnProperty("create") // Here, it is Object since it has property,not typeof
"true" function
dir(Object) // Again, Object is object,it has property (method)
function Object() { [native code] }
摘錄爲什麼typeof運算對象沒有對象?爲什麼Object.constructor不是一個函數Object()?
謝謝 的MIro