Skip to content

TingYu-Lee/worker-sample-code

 
 

Repository files navigation

worker-sample-code

shared-worker

Multi-window application sample code.

sample 1

  1. 開啟: 主畫面

  2. 開啟: 工具列

  3. click 工具列 的選項

  4. 主畫面 接收

sample 2

  1. 從任意視窗輸入下列指令: worker.port.postMessage('hello world');

  2. 打開另一視窗的 console

隨筆

Javascript Multiple Thread

想要開蓋即食的話,看 shared worker 的部分就好

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 51.5%
  • HTML 48.5%