-
aaaa
查看全部 -
部署命令:npm run build;
查看全部 -
new Router({
// 路由激活添加属性
linkActiveClass: 'styleName'
})
查看全部 -
git clone
git status
git add .
git commit -m ‘first commit’
git remote -v
git push origin master
git branch -a
git checkout -b dev
git push origin dev
git checkout master
git merge dev
git branch -D dev
git push origin :dev
git reset --hard head^
git log
git reflog
git reset --hard HEAD@{1}
查看全部 -
通过浏览器调试工具network 下的模拟网络,进行加载loading 或者加载效果 的测试,如:设置slow 3g 模拟网络慢进行调试。
查看全部 -
浏览器console 输出调试,可设置全局变量调试,方法如下:
mounted(){
window.vue=this;}
查看全部 -
chrome vue开发插件
查看全部 -
git clone git@github.com:kanlidy/hellogit.git 创建一个空仓库
git status
git branch -a
git branch
touch test.txt
git add.待处理待提交的状态
git commot -m "初次提交"
git remote -v
git push origin dev
git checkout master
ls
查看全部 -
定义store,引入Vuex文件
定义state和mutations
引入store文件
在对象中引用store
.commit
查看全部 -
cd 进入文件夹
Vue create 文件名
敲空格选择选项
ctrl+c取消安装
npm install --global vue-cli
cnpm install -g vue-cli
npm install -g @vue/cli升级
vue ui
查看全部 -
<div v-for="items in list" v-bind:style='styleMsg'{{items.name}}</div>
>
查看全部 -
el,元素绑定
var app = new Vue({
el:"#app"
data:{
msg: "hello vue",
another:"another hello vue"
},
watch{
msg:function(newval,oldval){
console.log(newval)
console.log(oldcal)
}
},
computed:{
msg1:function(){
return"computed"+this.msg+","+this.anthor}
},
})
查看全部 -
{{msg}}插入变量,插值语法
v-bind;
onclick;
v-if;
:herf;
查看全部 -
{{msg}}
new Vue ({
el:'#app',
data:{
masg:'hello vue!!'
}})
绑定元素
上BootCDN上查找
查看全部 -
单独页面demo
查看全部
举报