search

Home  >  Q&A  >  body text

javascript - As shown below, what is the error?

Error in event handler for (unknown): TypeError: Cannot read property 'toString' of undefined What is this error? Please give me some advice, thank you!

女神的闺蜜爱上我女神的闺蜜爱上我2733 days ago995

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-07-05 10:50:42

    There is no toString method, look at the value using the toString method.

    reply
    0
  • 高洛峰

    高洛峰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

    reply
    0
  • 高洛峰

    高洛峰2017-07-05 10:50:42

    The object on which the toString() method is called is itself undefined, causing an error.

    reply
    0
  • 黄舟

    黄舟2017-07-05 10:50:42

    Is there missing ()

    reply
    0
  • 滿天的星座

    滿天的星座2017-07-05 10:50:42

    Under your xxx.toString(), xxx is already underfined, so of course an error will be reported again.toString()

    reply
    0
  • Cancelreply