<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 是直接不渲染了