The same function can be achieved without alert("Hello JavaScript");. Why must this code be added?
有人@我2017-12-25 17:42:51
It is only used for debugging the code. You can also use console.log. Alert also has a function, which is to give prompt information to website users when they click certain buttons or information, so that users know where the operation is wrong. However, Nowadays, everyone uses layer pop-ups
路过2017-10-25 13:01:51
This is debugging information, delete it if you are sure the program is useless