-
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}
查看全部 -
通過瀏覽器調(diào)試工具network 下的模擬網(wǎng)絡(luò),進行加載loading 或者加載效果 的測試,如:設(shè)置slow 3g 模擬網(wǎng)絡(luò)慢進行調(diào)試。
查看全部 -
瀏覽器console 輸出調(diào)試,可設(shè)置全局變量調(diào)試,方法如下:
mounted(){
window.vue=this;}
查看全部 -
chrome vue開發(fā)插件
查看全部 -
git clone git@github.com:kanlidy/hellogit.git 創(chuàng)建一個空倉庫
git status?
git branch -a
git branch
touch test.txt
git add.待處理待提交的狀態(tài)
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??
查看全部
舉報