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