51°s.mobi、Firefox 和 Javascript 错误(ASP.NET Webform)
我在 ASP.NET Web Forms Web 应用程序中看到 51 Degrees.mobi 库出现一些奇怪的行为。我将其范围缩小到最简单的测试用例,以便您可以轻松地重现它。步骤如下:
- 在 VS 2010 中创建一个新应用程序:文件 ->新->项目->网页-> ASP.NET Web 应用程序
- 右键单击 Default.aspx 和“浏览方式”,然后选择 Firefox,然后单击“设置为默认值”
- 运行应用程序,注意“主页”和“关于”菜单项正确呈现(样式化),并且没有错误Firebug
- 现在停止 VS 中的应用程序并启动 NuGet 控制台:工具 ->库包管理器 ->程序包管理器控制台
- 通过键入以下命令来安装 51 Degrees 程序包: install-package 51 Degrees.mobi
- 再次运行应用程序,注意“主页”和“关于”菜单项未正确呈现(样式),并且 Firebug 控制台中存在一个 Javascript 错误( this.container 未定义)。
知道这里会发生什么吗?我已经在 Firefox 7.0.1 和 3.16.13 中对此进行了测试,并且存在同样的问题。
I am seeing some strange behavior with 51degrees.mobi library in my ASP.NET Web Forms web application. I narrowed it down to the simplest test case so you can repro it easily. Here are the steps:
- Create a new app in VS 2010: File -> New -> Project -> Web -> ASP.NET Web Application
- Right click Default.aspx and "Browse with" and select Firefox and click "Set as Default"
- Run the app and notice "Home" and "About" menu items render properly (styled) and there are no errors in Firebug
- Now stop the app in VS and launch NuGet console: Tools -> Library Package Manager -> Package Manager Console
- Install 51 Degrees package by typing the command: install-package 51degrees.mobi
- Run the app again and notice "Home" and "About" menu items are not properly rendered (styled) and there is one Javascript error in Firebug Console (this.container is undefined).
Any idea what might be going on here? I have tested this in Firefox 7.0.1 and 3.16.13 and same issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,这是由于 51 Degrees 文件过时而发生的,更新后修复了该问题。
Turns out this was happening because of outdated 51 Degrees files, updating them fixed it.