search

Home  >  Q&A  >  body text

Some problems with Weibo 2 input box

Hello teacher, first of all, thank you to all the teachers of php Chinese website. I have two small questions

1. Why is aa() called at the end {}

2. Why tenx. innerHTML=m To unload the external part of {}

3. Why should aa be written at the end

TimeTime2212 days ago1344

reply all(3)I'll reply

  • 灭绝师太

    灭绝师太2018-11-08 09:27:47

    Question 1: JS functions are useless if not called;

    Question 2: This is the number of characters we input. It is not loaded externally, but is placed behind the judgment (look at the code carefully) )

    Question 3: Same as question 1 Calling function

    reply
    0
  • Time

    Thank you teacher for your answer

    Time · 2018-11-08 10:02:17
    灭绝师太

    There is no need to call aa(). You can find out by doing computer tests in your spare time. This is how to write an anonymous function. There is no need to call it, and you don’t need to add a function name.

    灭绝师太 · 2018-11-08 10:02:53
  • Cancelreply