Code written according to a new js file created by express,
express here is the request for road strength
app.get ("*", function (req, res) {
)//
res.sendFile(__dirname+"/view/1.html")
})
how to request a path in vue?
or just put the js under the same level of index.html, and then modify the road strength? Can anyone know the guidance?
is how to merge. Read
var router = express.Router ();
/ / written by netizens for static entry
router.get ("/", function (req, res, next) {
req.url =". / index.html";
next ();
});
/ / declare static resource address
app.use (express.static (". / dist"));-
app.use (router);
under the guidance of the Great God