如何利用JS判断当前来路域名并跳转到指定页面获取当前请求路径var href = location.href if(href.indexOf("baidu")>-1){跳转location.href = "http:baidu.com2023-02-21JavaScript250