2 个回答

通过 window.open 可以达到目的。

window.open('https://notbucai.com', '_blank', 'width=800px,height=600px,menubar=no,resizable=no,status=no,toolbar=no')

具体可以参考:https://developer.mozilla.org...

window.open

 myWindow=window.open('','','width=200,height=100');
 myWindow.document.write("<p>这是'我的窗口'</p>");
 myWindow.focus();

image.png

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题