window常用事件 闲者无敌 2023-01-13 52 阅读1分钟 打印 <a-button @click="print" v-if="showBtn">打印</a-button> showBtn: true, print() { this.showBtn = false this.$nextTick(() => { window.print() this.showBtn = true }) }, 新窗口打开 window.open(Url,"_blank")