运维前端 window.location.href与window.open的区别 一、比较常用的JS跳转页面和打开新窗口的方法 1、替换当前页 (重新定位当前页) window.location.href = "https://www.xxx.com"; // 跳转到新的域名 wi... 2021年12月25日192,508评论前端 阅读全文
运维前端 JavaScript中window.open()和Window Location href的区别 目录 1:window.location.href的用法: 2:window.open()的用法 3: window.open和window.location.href的区别 1:区别 2.windo... 2021年12月25日3,524,104评论前端 阅读全文