不用a标签在新窗口中打开外链的方法

 location.href = "url地址"会在覆盖原窗口

 wiow.open("url地址")会在新标签/新窗口打开这个链接

猜你喜欢

转载自blog.csdn.net/a1059526327/article/details/108510146