第一种,使用ie的条件标签:
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
第二种,通过js判断浏览器:
<script type="text/javascript"><!--
var ms_ie = false;
var ua = window.navigator.userAgent;
if(ua.indexOf('MSIE 7') != -1 || ua.indexOf('MSIE 8') != -1){
document.write('<script type="text/javascript" src="${ctx}/framework/jquery/jquery-1.10.2.min.js"><\/script>');
}else{
document.write('<script type="text/javascript" src="${ctx}/framework/jquery/jquery-3.1.1.min.js"><\/script>');
}
//-->
</script>