What is the mode of operation of vue?

vue data, properties, event binding, these can be regarded as "stand-alone" functions, is the component function "stand-alone"? Is the vue routing for the switching component function "stand-alone"? Is npm run dev a necessary condition for the switching function of vue components?

  • if it"s just a front-end operation, then you can"t let the user npm, right?
  • if it is set in the background, is the background language dead? Where should the background processing be written?
  • if this instruction runs in the background, but is only used to switch routes and is separate from background data processing, will there be a conflict in the address bar in the case of a non-single page?

beginner vue, is a little confused, try to understand.

Jul.29,2021

npm run build then enter the dist folder of the project, and double-click to open index.html . It is estimated that there will be no such problem


.

by "stand-alone", does the landlord mean that you only need a browser to run it?
if that's what it means, these are all "stand-alone", yes.

you need to use npm run dev when developing. This command does two main things:

  1. package your code into a file;
  2. listens for changes in files to help you repackage and refresh the page automatically.

when your development is complete, you just need to package the code, and you will find that it is actually "pure front-end".

if you don't need server-side rendering, you can use the back-end programming language as much as you like.

whether the route will conflict depends on which route method you use. Vue-router uses hash mode by default, which is a pure front-end route, and there will be no conflict.
if you use history mode, see ide/essentials/history-mode.html-sharp%E5%90%8E%E7%AB%AF%E9%85%8D%E7%BD%AE%E4%BE%8B%E5%AD%90" rel=" nofollow noreferrer "> document

for details.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b369f0-e57a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b369f0-e57a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?