index.html
Count numbers: Start Worker Stop Worker
Count numbers:
worker.js
var i=0; function timedCount(){ i=i+1; postMessage(i); setTimeout("timedCount()",500); } timedCount();
上一篇:HTML5 Session Local Storage
下一篇:html5开发移动混合App系列2-开发环境搭建(windo