直接看代码:
1 2 3 4 5 6 7 8 9 | const win = window.open(routeData.href, this.windowTitle); win.windowTitle = this.windowTitle; const loop = setInterval(function() { if (win.closed) { clearInterval(loop); } else { win.document.title = win.windowTitle; } }, 1000); |
web开发分享
声明: 本文采用 BY-NC-SA 协议进行授权 | WEB开发分享
转载请注明转自《window.open打开并修改名字》