vue -js 点击一个按钮 触发 另外一个按钮的方法


<a-button type="primary" html-type="submit"  id="submit" v-show="false"> 提交</a-button>
<a-button type="primary" html-type="submit" @click="clickSubmit"> 
用户创建 
 </a-button>
    

clickSubmit(){
    
      document.getElementById('submit').click();

      console.log(123123)
}

 

 

v-show是渲染了但是没展示

v-if 是直接不渲染了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM