【问题标题】:Chrome Dev Tools is blankChrome 开发工具为空白
【发布时间】: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


【解决方案1】:

似乎 Chrome 版本必须以某种方式匹配。我尝试使用 Chrome Portable 43,它可以工作。

【讨论】:

  • 我也有这个问题。感谢您抽出宝贵时间发布您自己问题的答案。
猜你喜欢
  • 2018-09-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-09-14
  • 1970-01-01
  • 1970-01-01
  • 2018-08-25
  • 1970-01-01
相关资源
最近更新 更多