Cov txheej txheem:

Kuv yuav pib qhov tshiab Vue li cas?
Kuv yuav pib qhov tshiab Vue li cas?

Video: Kuv yuav pib qhov tshiab Vue li cas?

Video: Kuv yuav pib qhov tshiab Vue li cas?
Video: Jack GV - Kuv Thov Txim Ft. Vicky Yang (Official Audio) 2024, Kaum ib hlis
Anonim

Teeb Vue. js project hauv 5 kauj ruam yooj yim siv vue-cli

  1. Kauj ruam 1 npm install -g vue -cli. Cov lus txib no yuav nruab vue - cli thoob ntiaj teb.
  2. Kauj ruam 2 Syntax: vue ib < qhov project -npe> example: vue hauv webpack-simple tshiab - qhov project .
  3. Kauj ruam 3 cd tshiab - qhov project . Hloov directory rau koj qhov project nplaub tshev.
  4. Kauj ruam 4 npm install.
  5. Kauj ruam 5 npm khiav dev.

Tom qab ntawd, ib tug kuj nug, Kuv yuav pib Vue project li cas?

Qhib koj lub davhlau ya nyob twg thiab khiav cov lus txib nram qab no rau pib Vue GUI hauv koj tus browser. Tam sim no nyem rau ntawm qhov tsim tab thiab xaiv qhov chaw txuag koj lub app ces nyem rau Tsim ib qho tshiab qhov project ntawm no khawm. Nkag mus rau koj qhov project npe thiab xaiv koj tus neeg saib xyuas pob ces nyem rau ntawm pob Next.

Kuj Paub, Kuv yuav khiav Vue kab hais kom ua li cas? Hauv ib Vue CLI qhov project, @ vue / cli -service nruab ib lub npe binary vue - cli - kev pabcuam. Koj tuaj yeem nkag mus rau binary ncaj qha li vue - cli -service hauv npm scripts, los yog./node_modules/. hauv / vue - cli - kev pabcuam los ntawm lub davhlau ya nyob twg. Koj ua tau khiav scripts nrog ntxiv nta siv GUI nrog rau vue ua command.

Ib yam li ntawd, tib neeg nug, Kuv yuav teeb tsa Vue app tshiab li cas?

Sim saib cov vis dis aus no ntawm www.youtube.com, lossis qhib JavaScript yog tias nws tsis ua haujlwm hauv koj lub browser

  1. Nruab @vue/cli. Kuv yuav pib los ntawm kev txhim kho Vue CLI, lub cuab yeej uas yuav ua rau peb pib yooj yim dua.
  2. Tsim ib qhov project.
  3. Pib ib qhov project.
  4. Tsim ib qho kev tivthaiv tshiab.
  5. Tsim API hu.
  6. Tso cov ntaub ntawv.

Kuv yuav teeb Vue 3 li cas?

Koj yuav xav ua raws li cov kauj ruam no:

  1. Clone qhov chaw ntawm github.
  2. Txhim kho cov kev vam meej los ntawm kev khiav xov paj.
  3. Tsim qhov project siv xov paj tsim vue -f ntiaj teb no.
  4. Siv pob khoom/vue/dist/vue. ntiaj teb no. js ua si nrog Vue 3.

Pom zoo: