大家讲道理2017-04-17 16:13:52
https://github.com/FengShangW...
一個簡單的登陸註冊加聊天應用程式(node + express + mongodb),可以參考
ringa_lee2017-04-17 16:13:52
最簡單的就是為 form 增加 onsubmit 參數,非同步提交
<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>