📅  最后修改于: 2022-03-11 15:04:26.756000             🧑  作者: Mango
var session = ping.createSession ();
session.pingHost (target, function (error, target) {
if (error)
console.log (target + ": " + error.toString ());
else
console.log (target + ": Alive");
});