Nothing happens when I click the Button, it feels right
PHPz2017-05-19 10:39:50
Submit can only be triggered when it is written in the form. What he submitted is the form
给我你的怀抱2017-05-19 10:39:50
1. If you use it this way, you need to add a <form></form> tag externally. You can activate submit by pressing Enter, and there is no need to write js.
2. If you don’t want to add a layer of <form></form> tags, then you can listen to the onclick event of the button.