【发布时间】:2016-05-24 13:05:25
【问题描述】:
我开发了一个离子应用程序,但我在 Genymotion 模拟器中得到一个空白页。因此,我想使用 chrome 开发工具进行调试,但是从 chrome://inspect/#devices 单击 Inspect 时出现空白页:index.html file:///android_asset/www/index.html
Chrome 开发工具控制台显示 2 个错误:
inspector.js:4327 Uncaught TypeError: Cannot read property 'addEventListener' of undefined
VM43:61 Uncaught TypeError: Cannot read property 'addExtensions' of undefined
我还清除了 localStorage 并重置了 Chrome dev tools console completely blank 中提到的默认设置
Chrome Version 49.0.2623.47 beta-m
WebView using Crosswalk 12 Chromium Version 41.0.2272.74
【问题讨论】:
-
我遇到了类似的问题,我的 addEventListener 只能在控制器中使用,尝试使用 $ionicplatform.ready
标签: ionic-framework google-chrome-devtools