练习
This commit is contained in:
28
teaching/jwl/课件/vue/note.md
Normal file
28
teaching/jwl/课件/vue/note.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# vue
|
||||
|
||||
## vue cli 常用命令
|
||||
* vue create 创建项目
|
||||
* vue --version 查看版本(版本在3以上)
|
||||
* cd + 项目文件夹的名字 进入项目文件夹目录
|
||||
* npm run serve
|
||||
yarn serve
|
||||
运行
|
||||
|
||||
|
||||
## 目录结构
|
||||
node_modules 安装的第三方的库会在这里面
|
||||
public 忽略掉
|
||||
.gitignore git 上传的时候用来规定忽略文件的
|
||||
package.json 记录项目中用的依赖 名字+版本
|
||||
src 项目主体
|
||||
assets 静态文件(默认)
|
||||
static 静态文件(常用)
|
||||
components 存放组件
|
||||
pages 存放页面
|
||||
app.vue 入口文件
|
||||
|
||||
|
||||
## 基本结构
|
||||
template html
|
||||
script js
|
||||
style css
|
||||
Reference in New Issue
Block a user