html5 - Newbie's question: Why can't the post request of the form be processed by routing?
迷茫
迷茫 2017-06-10 09:49:12
0
1
742

Front desk ws.html

手机号 QQ号 邮箱

Routing ws.js

router.post('/ws',function(req,res,next){ console.log(req,body); res.render('suc',{ message : "恭喜你完善成功", }) })

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (1)
巴扎黑

This route is not entered at all. Is your log information output?

Your

does not haveaction, and it should post to the homepage of the website by default.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!