コードは次のとおりです。機能スリープ(n){ var a = new ActiveXObject( "wscript.shell"); a.run( "%comspec% /c ping -n" + n + "127.0.0.1> nul"、0、1); a = null; }