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
469 views
in Technique[技术] by (71.8m points)

怎么样实现window.open打开的新页面是另一个进程?

我发现window.open或者a标签打开的新tab页,和原页面是在同一个进程里面的,那么如果新打开的这么页面数据量比较大的情况下,原页面会卡死。所以想问问如何实现新打开的这个页面在另一个进程中
我试了js的webworker,但是js中无法获取到window或者document对象,要怎么解决或者有其他方案吗?
我是vue单页面


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

1 Answer

0 votes
by (71.8m points)

使用 a 标签时声明 rel='noreferrer' 就可以了。


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

...