1 Star 0 Fork 0

aparece/codeql

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ConditionalComments.qhelp 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p>
Conditional comments are only supported in Internet Explorer and should be avoided for portability.
</p>
</overview>
<recommendation>
<p>
Use feature detection (as offered by major frameworks such as <a href="http://jquery.com">jQuery</a>) instead.
</p>
</recommendation>
<example>
<p>
The following code snippet uses conditional comments to detect whether it is running on Internet Explorer 9 or newer.
A better alternative would be to directly check for the desired features using, for instance, jQuery's
<code>$.support</code> object.
</p>
<sample src="examples/ConditionalComments.js" />
<p>
Note that conditional comments are no longer supported in Internet Explorer 11 Standards mode.
</p>
</example>
<references>
<li>Internet Explorer Dev Center: <a href="http://web.archive.org/web/20121103072038/http://msdn.microsoft.com/en-us/library/ie/8ka90k2e(v=vs.94).aspx">@cc_on Statement (JavaScript)</a>.</li>
</references>
</qhelp>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aparece/codeql.git
git@gitee.com:aparece/codeql.git
aparece
codeql
codeql
main

搜索帮助