是a instanceof b确切等于a.constructor === b?
如果没有,请告诉我这些之间的区别.
为什么以下两行会返回不同的结果?
("test" instanceof String) // returns false
("test".constructor == String) // returns true
Run Code Online (Sandbox Code Playgroud)
在镀铬版本28.0.1500.95 m的控制台中测试
对于本机类型,它的工作方式有所不同吗
javascript ×2