Bind an onclick event to an element on the dom. The event method is click. Why can't the click event be triggered?
Click is similar to the keyword and reserved word in JS, so it is not recommended to use it
Change the function name, it may be keyword conflict
Change the name of the click method
< button onclick = "click" > < / button >, onclick assigns the function name, not the result of the function.