时间:2021-04-19加入收藏
方法二:<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script>
if (typeof jQuery == 'undefined') {
document.write(unescape("%3Cscript src='/js/jquery.min.js'%3E%3C/script%3E"));
}
</script>
代码中%3C和%3E分别代表<和>,并通过unescape()函数解码还原。<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script>window.jQuery || document.write(unescape("%3Cscript src='/js/jquery.min.js'%3E%3C/script%3E"))</script>