FIC_Solar/SolarPower/wwwroot/js/workers/workers.js
2021-08-17 12:02:47 +08:00

10 lines
183 B
JavaScript

var time = true;
function timer() {
console.log("haha");
postMessage("ok");
}
if (time) {
var myVar = setInterval(function () { timer() }, 300000);
time = false;
}