【发布时间】:2019-04-30 15:53:03
【问题描述】:
我有一个简单的网页,它只是一些 css 和 html。我需要使用 jquery 包含移动导航,它还需要与 IE8 兼容。
我发现 IE8 支持 1.1.9 版的 jquery,我还发现了如何使用这些不同的版本,具体取决于加载我的网站的浏览器。
我的问题是,如果我使用 IE8 的 jquery 版本,我是否还需要在我的 html 脚本标记中包含不同的 js 文件?谢谢大家的回答
//this is what i have - before </body>
<!--[if lt IE 9]>
<script src="https://code.jquery.com/jquery-1.9.0.min.js"</script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="https://code.jquery.com/jquery-3.4.0.min.js"></script>
<!--<![endif]-->
//and how do I render my js file with my code? is it like this?
<!--[if lt IE 9]>
<script src="https://code.jquery.com/jquery-1.9.0.min.js"</script>
<script src="app1.js"</script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="app2.js"></script>
<!--<![endif]-->
【问题讨论】:
-
你真的死心塌地支持不安全的浏览器吗? IE microsoft.com/en-us/windowsforbusiness/end-of-ie-support 这是一个不安全的浏览器,用户应该升级到更安全的浏览器。
标签: javascript jquery html