jquery 条件注释兼容ie

<body>
    <p id="p">狗蛋</p>
</body>
<!--[if lt IE 9]>
        <script src="js/jquery-1.10.2.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
        <script src="js/jquery-3.1.1.js"></script>
<!--<![endif]-->
<script type="text/javascript">
    $("#p").css("color","blue");
</script>

猜你喜欢

转载自blog.csdn.net/qq_40001322/article/details/81285755
今日推荐