人生最曼妙的风景,竟是内心的淡定与从容!
https://github.com/FengShangW... A simple login registration and chat application (node + express + mongodb), you can refer to
res.redirect(xx)
The simplest thing is to add the onsubmit parameter to the form and submit it asynchronously
<script> function PostData() { $.ajax({ type: "POST", url: "post.go", data : "", success: function(msg) { } }); return false; } </script> <form onsubmit="return PostData()"> <input type="text" value=""> <input type="submit"> </form>
You can execute location.reload() after a successful request in ajax
https://github.com/FengShangW...
A simple login registration and chat application (node + express + mongodb), you can refer to
res.redirect(xx)
The simplest thing is to add the onsubmit parameter to the form and submit it asynchronously
You can execute location.reload() after a successful request in ajax