📌  相关文章
📜  反应检查本地主机 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:20.690000             🧑  作者: Mango

代码示例1
if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "") {
    alert("It's a local server!");
}