- 超链接形式
<a href="www.google.com" title="google" target="_blank">google</a>
//新页面打开 -
window.location.href="www.google.com";
//在当前窗口打开 -
window.open("www.google.com");
//新建窗口中打开
js打开新页面
最新推荐文章于 2023-12-02 18:46:46 发布
<a href="www.google.com" title="google" target="_blank">google</a>
//新页面打开window.location.href="www.google.com";
//在当前窗口打开window.open("www.google.com");
//新建窗口中打开