JavaScript ez 2012-05-23
以往常常遇到 Javascript 執行較長時間就會出現 "終止Javascript警訊" 或 "瀏覽器當掉",此時就可以利用 Conurrent Thread Library,就可以達到 Multi-Thread 效果,就不會當掉了。
檔案下載:Concurrent.Thread-full-20090713
相關說明:http://sourceforge.net/apps/mediawiki/jsthread/
範例:
<script src="Concurrent.Thread-full-20090713.js" language="javascript"></script> <script language="javascript" type="text/javascript"> Concurrent.Thread.create(function(){ var i = 0; while(true) document.body.innerHTML += (i++) + " "; }); </script>
標籤: JavaScript
本文章網址:
https://www.ez2o.com/Blog/Post/JavaScript-Multi-Thread-Conurrent-Thread-Library
https://www.ez2o.com/Blog/Post/189
https://www.ez2o.com/Blog/Post/JavaScript-Multi-Thread-Conurrent-Thread-Library
https://www.ez2o.com/Blog/Post/189