Firefox& Angular:缺少脚本

时间:2016-06-24 07:57:22

标签: angularjs firefox

我有一个角度应用程序在Chrome& IE浏览器。在Firefox中,我收到错误:

Module 'xxxx' is not available! You either misspelled the module name or forgot to load it.

在网络标签中,我可以看到app.js脚本已下载。但我在调试器选项卡中找不到脚本,在其中放置一个断点。我甚至在定义模块之前添加了alert,但警报没有显示。

似乎Firefox由于某种原因没有执行脚本。有什么建议吗?

更新:当我在脚本中包含localStorage时,会发生这种情况。如果我把它拿出来,那么我可以在Debugger选项卡中看到脚本并加载应用程序。

0 个答案:

没有答案