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