企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
## js 跳转链接的几种方式 1、跳转链接 在当前窗口打开 1window.location.href="http://www.baidu.com"   等价于    <a href="baidu.com" target="_self">go baidu</a>   2、跳转链接 在新窗口打开 1window.open("http://www.baidu.com")  等价于 <a href="baidu.com" target="_blank">go baidu</a>  3、跳转链接 返回上一页 1window.history.back(-1); ## js刷新 Javascript刷新页面的几种方法: 1    history.go(0) 2    location.reload() 3    location=location 4    location.assign(location) 5    document.execCommand('Refresh') 6    window.navigate(location) 7    location.replace(location) 8    document.URL=location.href