<!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>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。