扫码关注官方订阅号
Error in event handler for (unknown): TypeError: Cannot read property 'toString' of undefined 请问这是什么错误?求指教,谢谢!
没有toString方法,看看使用toString方法的那个值。
對象沒有toString這個方法,console.log(obj)看下對象是不是補錯了
调用 toString() 方法的对象,本身 undefined,导致出错。
是不是少了()
你的xxx.toString()下,xxx就已经是underfined了,所以再.toString()当然会报错
xxx.toString()
xxx
underfined
.toString()
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
没有toString方法,看看使用toString方法的那个值。
對象沒有toString這個方法,console.log(obj)看下對象是不是補錯了
调用 toString() 方法的对象,本身 undefined,导致出错。
是不是少了()
你的
xxx.toString()
下,xxx
就已经是underfined
了,所以再.toString()
当然会报错