Home > Article > Web Front-end > Submitting a form without refreshing without using ajax_javascript skills
HTML code:
JS code:
If the saving is successful, the background returns {"ok":true}; if the saving fails, the background returns {"ok":false, "msg":"error message"}
Isn’t it very simple? If you friends need it, just take it away, you’re welcome^_^