search

Home  >  Q&A  >  body text

Why do I keep getting the message that the variable is undefined: status?

I copied the teacher’s code and it’s the same

01.jpg

海绵宝宝海绵宝宝2372 days ago2326

reply all(3)I'll reply

  • 不愿将就

    不愿将就2018-07-23 10:11:11

    The location is wrong

    reply
    0
  • You bad bad

    You bad bad2018-07-18 16:03:31

    Add a default value, otherwise status will definitely have no value at the beginning and be undefined.

    reply
    0
  • 无忌哥哥

    无忌哥哥2018-07-17 17:29:51

    Try writing it inside the previous brace

    reply
    0
  • Cancelreply