我已经在这个论坛上看到过有关此错误的帖子,但我仍然无法弄清楚代码中的哪个位置触发了 JavaScript 错误。调用堆栈仅显示 angular.js 代码。它们都不是我的代码。因此很难查明问题出在哪里。当我单击“继续”时,我的应用程序的主页显示,但没有任何导航链接可导航。每个链接都有相同的 url。 “http://localhost:52334/myApp/#:”。我的应用程序在 IIS Express 上运行。 _Layout.cshtml中有一个。感谢您的帮助。
最佳答案
Thank you for the response. My application works when I changed
from <base href="/myApp/" />
to <base href="/myApp" /> or <base href="/" />.
关于JavaScript 运行时错误 : unable to get property 'replace' of undefined or null reference,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32731850/