miniblink49 icon indicating copy to clipboard operation
miniblink49 copied to clipboard

创建新窗口OnCreateView获取不到跳转页面的链接

Open ozshen opened this issue 4 years ago • 1 comments

请教一下,使用创建新窗口时 OnCreateView 获取不到网页脚本 b() 方式的跳转链接,这样的跳转方式不支持吗? a()方法跳转能够正常获取到链接,能给个解决思路吗?

function a() { window.open('http://127.0.0.1:6699/test.html'); }

function b() { var b = window.open(); b.location.href = 'http://127.0.0.1:6699/test.html'; }

ozshen avatar Aug 20 '20 03:08 ozshen

有个URL change的回调你可以试试

weolar avatar Aug 20 '20 06:08 weolar