node.js+express 怎么在路由中刷新当前页
黄舟
黄舟 2017-04-17 16:11:52
0
4
413
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(4)
大家讲道理

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template