📜  如何检查网站是否已关闭 javascript 代码示例

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

代码示例1
isSiteOnline("http://www.facebook.com",function(found){
    if(found) {
        // site is online
    }
    else {
        // site is offline (or favicon not found, or server is too slow)
    }
})