2018-09-15

1.图片来回切换




    
    Document


// 用v-bind来绑定一个属性

2.用v-show制作选项卡




    
    Document
 给一下属性 添加效果    
 


利用for循环 点击事件 还有index+1 下标加一 从零开始 0+1
  • {{index+1}}

3.隐藏文字




    
    Document


//msg代替html里的标签

{{msg}}

{{msg}}

4.点击button隐藏显示图片



    
    Document
    


5.v-if v-els v-else-if的运用




Document



0000000000000000


111111111111


2222222222222


333333333333


444444444444


55555555555555555






你可能感兴趣的:(2018-09-15)