TypeError: fn.bind is not a function"


vue.esm.js?efeb:205 Uncaught TypeError: fn.bind is not a function
at nativeBind (vue.esm.js?efeb:205)
at initMethods (vue.esm.js?efeb:3541)
at initState (vue.esm.js?efeb:3309)
at VueComponent.Vue._init (vue.esm.js?efeb:4628)
at new VueComponent (vue.esm.js?efeb:4798)
at createComponentInstanceForVnode (vue.esm.js?efeb:4310)
at init (vue.esm.js?efeb:4131)
at createComponent (vue.esm.js?efeb:5608)
at createElm (vue.esm.js?efeb:5555)
at VueComponent.patch [as __patch__] (vue.esm.js?efeb:6091)

這是因為在methods中定義的可能是一個對象,或者是定義的方法名與某個對象名稱沖突了,所以在fn.bind的時候,是綁定的對象,而不是方法,拿到的值未undefined


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM