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

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

在vue的watch中執(zhí)行HTMLElement.click()無效是什么原因?qū)е?/h1>

使用的是element框架,用vue的watch監(jiān)聽selectValue變化,當(dāng)變化時(shí)就觸發(fā)input[type=file]的click(),但是無效;html 相關(guān)代碼<el-select v-model="selectValue" placeholder="請(qǐng)選擇">     <el-option         v-for="item in options"         :key="item.value"         :label="item.label"         :value="item.value">     </el-option></el-select><input type="file" ref="inputFile" id="inputFile">vue 相關(guān)代碼data () {    return {         options:[{             value: '選項(xiàng)1',             label: '黃金糕'             }, {             value: '選項(xiàng)2',             label: '雙皮奶'             },],         selectValue:''     } }, watch: {     selectValue: function(v) {        // this.$refs.inputFile.click() 無效         // document.getElementById('inputFile').click() 無效     } }
查看完整描述

1 回答

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

添加回答

了解更多

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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