gpt4 book ai didi

iis - browserLink 错误 -- 不支持的伪 : index

转载 作者:行者123 更新时间:2023-12-05 00:09:18 25 4
gpt4 key购买 nike

在 VS 2013 下运行基于 Razor 的 Web 项目时,使用 IIS,我在 browserLink 中看到以下错误:

Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: index 

关闭 browserLink 可以消除错误。但真正的解决方法是什么?

类似问题请看这里:

Page uses an invalid or unsupported form of compression when debugging ASP.NET MVC app with Visual Studio 2013 Preview

最佳答案

这个问题似乎只在使用 browserLink 时出现,通常不会出现在生产环境中。

I found a discussion about it here .其中说:

The issue is known bug in jQuery which is internally used in the Browser Link functionality. When selecting elements which contains ":" in its id, jQuery does not return element. The reason for the problem is that jQuery has some predefined pseudo-selectors and “:00” for example is not a valid selector.

The Browser Link script tries to find our detail tables elements by its id (the detail table id contains ":"), jQuery does not return element and the Browser Link scripts throws an error that the character sequence is not recognized.

As this issue is still not fixed in the latest version of jQuery the only workaround for now is to disable the Browser Link feature in VS 2013.

给定的禁用browserLink的选项包括以下选项:

  • 将 appSetting vs:EnableBrowserLink 设置为 false
  • 在 web.config 文件中设置 debug=false

关于iis - browserLink 错误 -- 不支持的伪 : index,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20221845/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com