vue组件中监听document加载完成(document.readyState)
vue组件中监听document加载完成
created() { const that = this; that.timer = setInterval(() => { if (document.readyState === 'complete') { that.toImage(); window.clearInterval(that.timer); } }, 1000); },
vue组件中监听document加载完成
created() { const that = this; that.timer = setInterval(() => { if (document.readyState === 'complete') { that.toImage(); window.clearInterval(that.timer); } }, 1000); },