vue nextTick

当前界面渲染完后再执行
this.$nextTick(() => {});
(eg:
打印 打印界面不显示打印按钮
当打印按钮为buttion = false使 在执行window.print()

doPrint() {
this.button = false;
this.$nextTick(() => { window.print(); });
}
)

猜你喜欢

转载自blog.csdn.net/qq_36567996/article/details/87536046