我剛安裝了Chrome瀏覽器開發編輯器,並與樣品模板之一給它一個嘗試:樣品使聚合物Chrome應用不運行
- 新建項目>>項目類型= JavaScript的Chrome應用(使用聚合物紙元素)>>創建
- 右鍵點擊>>重構爲CSP
- 點擊運行(黑色箭頭)
一個窗口,似乎是聚合物樣品應用打開,沒有聚合物的功能(僅HTML嘛rkup)。以下是控制檯的開發工具報告:
extensions::platformApp:31 Uncaught Error: document.write() is not available in packaged apps.
index.html:338 GET chrome-extension://fonts.googleapis.com/css?family=RobotoDraft:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en net::ERR_FAILED
core-resizable.html.0.js:95 Uncaught TypeError: undefined is not a function
polymer.html.0.js:5 Uncaught TypeError: Cannot read property 'parentNode' of undefined
unresolved.js:30 Uncaught ReferenceError: Platform is not defined
queue.js:138 Uncaught ReferenceError: CustomElements is not defined
我覺得很奇怪,與IDE捆綁在一起示例應用程序不工作開箱即用,所以我想我一定是錯的地方做一些...
我的問題是:有人知道我應該對示例代碼或我的配置使其運行正確嗎?
感謝
注:可能是有用的,我使用的Chrome版本39.0.2171.71米
是的,好像這款示例應用程序在Chrome Apps平臺方面的功能可怕。你的問題是什麼? – Xan 2014-12-08 00:19:25
好的,我想將我的webapp打包爲android應用,並認爲Chrome應用恰恰適合此目的... – 2014-12-08 08:11:50
這是_still_不是問題。 – Xan 2014-12-08 08:12:20