console.log(window.XMLHttpRequest,typeof(window.XMLHttpRequest))
运算结果为:
ƒ XMLHttpRequest() { [native code] } "function"
window.XMLHttpRequest应该是对象的属性,为什么typeof之后得到function呢?
console.log(window.XMLHttpRequest,typeof(window.XMLHttpRequest))
运算结果为:
ƒ XMLHttpRequest() { [native code] } "function"
window.XMLHttpRequest应该是对象的属性,为什么typeof之后得到function呢?
13 回答12.8k 阅读
7 回答1.9k 阅读
3 回答1.1k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
6 回答897 阅读✓ 已解决
6 回答1.1k 阅读
2 回答1.3k 阅读✓ 已解决
属性也可以是个函数啊,比如
c就是a的一个作为函数的属性