如何在IE中加载脚本?

问题描述:

可以在IE中加载带有条件评论的脚本

It's possible to load a script only in IE with conditional comments

<!--[if lte IE 7]>
    <script type="text/javascript" src="somescript.js"></script>
<![endif]-->

但如果我想要在IE中加载它会怎么样? 7(但在所有其他浏览器中仍然需要它)?

but what if I don't want to load it in IE lte 7 (but still need it in all other browsers)?

任何简单的解决方案?

PS我有一个SyntaxHighlighter的问题 - 太多的代码减慢了IE7的速度,因为我的时间不够,我决定暂时把它关掉IE7。

P.S. I have a problem with SyntaxHighlighter - too many code slows IE7 down and since I'm short of time, I decided just to turn it off in IE7 for now.

这篇文章说你可以使用(NOT)运算符,如 [if!IE]

This post says you can use the ! (NOT) operator like [if !IE]