Error in event handler for (unknown): TypeError: Cannot read property 'toString' of undefined What is this error? Please give me some advice, thank you!
PHP中文网2017-07-05 10:50:42
There is no toString method, look at the value using the toString method.
高洛峰2017-07-05 10:50:42
The object does not have the toString method. Console.log(obj) to see if the object has been corrected
高洛峰2017-07-05 10:50:42
The object on which the toString() method is called is itself undefined, causing an error.
滿天的星座2017-07-05 10:50:42
Under your xxx.toString()
, xxx
is already underfined
, so of course an error will be reported again.toString()