ocoge/scripts/test.js

8 lines
179 B
JavaScript
Raw Permalink Normal View History

2020-01-21 07:10:10 +00:00
var count=10;
var id = setInterval(() => {
console.log(count--);
if (count<0) {
console.log(' : 終了 - Node Test JS');
clearInterval(id);
}
}, 1000);