我遇到一种情况,该服务器在当前地址上可能不可用,因此我想检测到该情况并将页面重定向到about:blank页面。我将如何使用JavaScript做到这一点? 最佳答案 window.location.href="about:blank";