如题
function func () {}
console.log(func.prototype) // Object {}
var fn = func.bind(this)
console.log(fn.prototype) // undefined ?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
emca-262里面这么说
https://www.ecma-internationa...
19.2.3.2
NOTE 1
Function objects created using Function.prototype.bind are exotic objects. They also do not have a prototype property.
exotic :奇异的特别的
19.2.4.3
Function objects created using Function.prototype.bind, or by evaluating a MethodDefinition (that are not a GeneratorMethod) or an ArrowFunction grammar production do not have a prototype property.
箭头函数也没有