在vue2.0的版本中,在操作data數組數據中,已經獲取到當前點擊的元素數據,怎么獲取到當前點擊元素數據的其他數據。data:{ ? ?navBar:[ ? ? ? ?{text:'考時地址',class:'navActive'}, ? ? ? ?{text:'考試時間',class:''}, ? ? ? ?{text:'報考方案',class:''}, ? ? ? ?{text:'拿證時間',class:''}, ? ? ? ?{text:'熱門院校',class:''}, ? ? ? ?{text:'熱門專業查詢',class:''}, ? ? ?],},methods:{ ? ?navClick:function(i,e){ ? ? ? ?this.navBar[i].class==''?this.navBar[i].class='navActive':this.navBar[i].class=''; ? ?}}
在vue2.0中操作data數組數據
jsj2283308644
2017-08-18 11:20:15