webveuje/teaching/jwl/课件/vue/note.md
2021-04-29 17:16:40 +08:00

28 lines
657 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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