摘要:
1.Worker用js代码:1 function messageHandler(e)2 {3 postMessage("Worker has received Message :"+e.data);4 }5 addEventListener("message",messageHandler,true)2.主页代码: 1 <head> 2 <title>Web Workers</title> 3 <meta charset="utf-8"> 4 <p id='support& 阅读全文