Git,Node.js,Vue,Vux常用指令

Git常用命令

1.git --version查看版本号
2.git init 初始化git
3.git status 查看状态
4.git add xxx.html 提交文件
5.git add. 文件名
6.git commit -m 提交到持久区
7.git config -global user.name
git config -global user.email
8.git log 查看日志
9.git log --oneline 单次显示
10.git show id 名称
11.git checkout index.html 回撤检查暂存区的内容
12.git branch new 创建一个新的分支
13.git branch 查看分支
14.git merge 分支名称 合并
15.git checkout 转换到分支
16.git reset --hard 章节id 回到指定的章节
17.git clone 克隆
18.git pull 下载
19.git push 上传
20.git log --graph 图标显示

node.js常用

npm init 初始化
npm install express
npm install bodyparser node.js 中间件,用于处理 JSON, Raw, Text 和 URL 编码的数据
npm install cookie-parser 这就是一个解析Cookie的工具。通过req.cookies可以取到传过来的cookie,并把它们转成对象
npm install multer node.js 中间件,用于处理 enctype=“multipart/form-data”(设置表单的MIME编码)的表单数据
npm install mongodb

vue脚手架指令

1.vue init webpack --save
2.cd 跳转到vue项目文件夹
3.npm run dev 启动vue项目
4.npm install vue-resource
使用proxy跨域,必须下载vue-resource,并且要到build/webpack.base.conf.js中配置
5.npm install --save axios
axios 是基于promis的跨域请求模块,使用axios需要先安装npm install – save axios,在跨域时,跨域时,将跨域url拼接在https://bird.ioliu.cn/v1/?url=后面即可

vux常用指令

1.创建一个vue项目
2.命令:npm install vux–save
3.npm install vux-loader --save
4.配置项目:build/webpack.base.conf.js
const vuxLoader = require(‘vux-loader’)
const webpackConfig = originalConfig // 原来的 module.exports 代码赋值给变量 webpackConfig
6
module.exports = vuxLoader.merge(webpackConfig, {
plugins: [‘vux-ui’]
})
5.npm install vue-style-loader
npm install css-loader
npm install less
npm install less-loader

引入jquery步骤:
1.npm install jquery --save
2.配置项目 build/webpack.base.conf.js
var webpack = require(“webpack”)
plugins:[
new webpack.ProvidePlugin({
$:“jquery”,
jquery:“jquery”,
jQuery:“jquery”,
“window.jQuery”:“jquery”
})
]

3.在main.js中引入jquery
import “jquery”

猜你喜欢

转载自blog.csdn.net/qq_43288110/article/details/84890672