摘要: 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& 阅读全文
posted @ 2013-01-15 18:00 xdxer 阅读(403) 评论(0) 推荐(0) 编辑