javascript运行时错误:无法获取未定义或空引用的属性'replace'

时间:2015-09-23 05:45:17

标签: javascript angularjs

我在这个论坛上看到过这个错误的帖子,但我仍然无法弄清楚我的代码中哪些地方会触发JavaScript错误。调用堆栈仅显示angular.js代码。这些都不是我的代码。所以很难找出出错的地方。当我点击“继续”时,我的应用程序的主页面会显示,但没有一个导航链接可以导航。每个链接都有相同的网址。 “http://localhost:52334/myApp/#:”。我的应用程序在IIS Express上运行。 _Layout.cshtml中有一个。谢谢你的帮助。

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:2)



Thank you for the response. My application works when I changed 
from <base href="/myApp/" />
to <base href="/myApp" /> or <base href="/" />.
&#13;
&#13;
&#13;