The registration form I wrote was submitted to the registerOK page using a post request. After submission, a "cannot post" error was displayed. The express template engine used, the code is as follows:
app.get("/registOK",function (req,res,next) { res.render("registOK"); });
Later, I searched on the Internet and found that routing generally uses "get", but if you specify "post" for form submission, you also need to add one to the routing:
app.post("/registOK",function (req,res,next) { res.render("registOK"); });
ok! The problem is solved!