如題function func () {}console.log(func.prototype) // Object {}var fn = func.bind(this)console.log(fn.prototype) // undefined ?
為什么JS中的bind方法返回的函數(shù)沒(méi)有prototype值?
犯罪嫌疑人X
2018-09-14 10:09:05