I can"t get the URL I want by running NODE, on the server
node
html
CSS,JS/weatherNODEweather
I do things like / index.html, / weather/index.html that URL displays different pages.
I can"t get the URL I want by running NODE, on the server
node
html
CSS,JS/weatherNODEweather
I do things like / index.html, / weather/index.html that URL displays different pages.
1 Why does the path not have / weather? for CSS,JS
first, the browser will load html, when it finds that other resources such as css and js, are introduced into the html, and then go to the server to request css and js resources. This path starts from the root directory of the server project, and the static file of your project is placed in the root directory, which naturally starts with / static.
2 Why is there no html file, is there a cache?
see that your css and js are printed on the console. In theory, html must have been loaded, so guess whether the information on the console has been overwritten and you haven't seen it. In addition, you can also console.log (req.url)
look at the path of the requested resource
shouldn t vue use vue-router? Why can it only be put into devDependencies (development dependency)? ...
my friend asked me to do an automatic buying and selling program, and then I wanted to grab the post package of a website and found that it was encrypted, so after analysis, the vue, packaged by webpack can see all the programs when it does the breakpoi...
: npm install -g webpack@1.x -d .... ...