<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          JSRunJavaScript線程庫

          聯(lián)合創(chuàng)作 · 2023-09-22 16:22

          JSRun 是用來在 JavaScript 中實現(xiàn)多線程編程效果的程序庫。

          示例代碼:

          <script type="text/javascript">
          window.onload = function() {
          var runnable = new Runnable('js/sample.js'),
              event = {
              data:'get.greeting',
              onsuccess: (function(e) {
                document.getElementById('welcome').innerHTML = e.data;
              }),
              onerror: (function(e) {
                alert(e.message);
              })
              };
          // method #1 - w/ a Runnable object
          (new Thread(runnable, 'Sample Thread')).start(event);
          // method #2 - w/o a Runnable object
          event.src = 'js/sample.js';
          (new Thread('Sample Thread')).start(event);
          };
          </script>

          瀏覽 17
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  97视频中文自拍 | 久草手机视频在线 | 欧美一级特黄A片免费看视频小说 | 超碰97人妻 | 国产天堂在线观看视频 |