Mobile Search Gadgets Data APIs Social Misc Ads Geo Tools Chrome
JavaScriptでバックグラウンド処理が可能になるWeb Workersを試してみました。 以下のようにWorker用のJSファイルを別に作り、それをスクリプト中で呼び出すことで利用します。 index.html var worker = new Worker("test-worker.js"); // workerにデータをPOST worker.postMessage("働け"); // worker.jsからpostされた場合のハンドリング worker.onmessage = function(event) { // 返り値はevent.dataに含まれます alert(event.data); // => "働きました" } test-worker.js onmessage = function(event) { var res = ""; // POSTされたデータは ev
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く