的特性 '的textContent' 我已經創建了一個inline webworker
如下:內嵌webworker:無法讀取空
var blob = new Blob([document.querySelector("worker").textContent]);
var worker = new Worker(window.URL.createObjectURL(blob));
但是我得到一個錯誤:
Cannot read property 'textContent' of null
我缺少什麼?
現在它拋出一個錯誤:'未捕獲的SyntaxError:意外的標識' –
@RahulDesai那是另一回事。您應該發佈另一個問題,因爲這是另一個問題。 – Florent
http://stackoverflow.com/questions/21403904/inline-webworker-uncaught-syntaxerror-unexpected-identifier –