📜  node.js ping - Javascript 代码示例

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

代码示例1
var session = ping.createSession ();

session.pingHost (target, function (error, target) {
    if (error)
        console.log (target + ": " + error.toString ());
    else
        console.log (target + ": Alive");
});