node.js & EJS:在 APP.JS app.get 中不起作用

node.js & EJS : in the APP.JS app.get doesn't work

我使用 Webstorm。我在page6用方法"get"准备了一个表格。但是 app.get 不起作用。没有任何错误。似乎 APP.JS 忽略了。

在PAGE6.EJS

<form action="/page6" method="get" >
     <input type="email" class="form-control" id="to">
     <button type="submit" class="btn btn-success">Send</button>
</form>

在APP.JS

app.get("/page6",(res,req)=>{
  console.log("Ok.Done.");
});

在PAGE6.JS

 router.get ('/page6",(res,req)=>{
      console.log("Ok.Done.");
 });

我认为get方法是由路由页面的JS处理的,而不是APP.JS。可能是关于webstorm的属性。