第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會有你想問的

vue兩個(gè)select用一個(gè)字段綁定出現(xiàn)的問題?

vue兩個(gè)select用一個(gè)字段綁定出現(xiàn)的問題?

鳳凰求蠱 2019-03-10 14:41:37
<div id="app">   <select v-model="cur" @change="show">     <option value>請選擇</option>     <option :value="item.id" v-for="item in arr">{{item.text}}</option>   </select>   <select v-model="cur" @change="show">     <option value>請選擇</option>     <option :value="item.id" v-for="item in arr2">{{item.text}}</option>   </select> </div>var vm = new Vue({         el: '#app',         data: {             cur: '',             arr:[               {id: 1,text:'hhh'},               {id: 2,text:'xxx'}             ],             arr2:[               {id: 3,text:'a3'},               {id: 4,text:'a4'}             ]         },         methods: {             show: function() {                 console.log(this.cur)             }         }     })頁面中有兩個(gè)選項(xiàng)用一個(gè)字段,使用vue做了之后,選擇其中一個(gè),兩個(gè)都變成了空。我想實(shí)現(xiàn)的效果是選擇其中一個(gè),另一個(gè)變成“請選擇”,該如何實(shí)現(xiàn)?
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 1187 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號