Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.5k views
in Technique[技术] by (71.8m points)

谷歌浏览器新开窗口打印,关闭新窗口,旧窗口输入框无法输入

谷歌浏览器;
vue项目;
问题:打印预览下,input无法输入
操作步骤:
1.进入项目,在A窗口,window.open打开一个新的窗口
2.新的窗口是打印预览状态下
3.直接点窗口的X关闭打印窗口或者鼠标滚轮关闭
4.旧的窗口输入框就无法输入内容

注:这样关闭window.onbeforeunload方法无法监听;


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...