Passing Javascript variable to

后端 未结 8 843
野趣味
野趣味 2020-11-28 04:07

HTML Part:


 this i         


        
8条回答
  •  旧时难觅i
    2020-11-28 04:28

    You can also use an express framework

    app.get("/:id",function(req,res)
    {
      var id = req.params.id;
      res.render("home.ejs",{identity : id});
    });
    

    Express file, which receives a JS variable identity from node.js

提交回复
热议问题