如下,请问这是什么错误?

Error in event handler for (unknown): TypeError: Cannot read property 'toString' of undefined 请问这是什么错误?求指教,谢谢!

阅读 4.6k
5 个回答

没有toString方法,看看使用toString方法的那个值。

對象沒有toString這個方法,console.log(obj)看下對象是不是補錯了

调用 toString() 方法的对象,本身 undefined,导致出错。

clipboard.png

是不是少了()

你的xxx.toString()下,xxx就已经是underfined了,所以再.toString()当然会报错

推荐问题