IE条件运算符:或...如果大于ie9或不是IE [英] IE Conditional operator: OR ... if is greater than ie9 or not IE
问题描述
如果浏览器是ie9或更高版本,或者不是,我想只包含历史记录和ajaxify,即:
<! - [if gte IE 9]>
< script type =text / javascriptsrc =assets / js / plugins / history.js>< / script>
< script type =text / javascriptsrc =assets / js / plugins / ajaxify.js>< / script>
<![endif] - >
如何使用OR运算符来表示这一点:
<! - [if gte IE 9 | !IE]>
??
谢谢! I want to only include history and ajaxify if the browser is ie9 or greater, OR is not ie: How can I use the OR operator to say this: Thanks! This worked:
这篇关于IE条件运算符:或...如果大于ie9或不是IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
<! - [if gte IE 9 | !IE]><! - >
< script type =text / javascriptsrc =assets / js / plugins / history.js>< / script>
< script type =text / javascriptsrc =assets / js / plugins / ajaxify.js>< / script>
<![endif] - >
<!--[if gte IE 9]>
<script type="text/javascript" src="assets/js/plugins/history.js"></script>
<script type="text/javascript" src="assets/js/plugins/ajaxify.js"></script>
<![endif]-->
<!--[if gte IE 9 | !IE ]>
?? <!--[if gte IE 9 | !IE ]><!-->
<script type="text/javascript" src="assets/js/plugins/history.js"></script>
<script type="text/javascript" src="assets/js/plugins/ajaxify.js"></script>
<![endif]-->