如题:JQ 判断网页 JQ 是否存在
(function(){
if(typeof jQuery == 'undefined'){
document.write('<script src=\"http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js\"><\/script>');
}
})();
本文介绍了一种在网页中检测jQuery库是否存在,并根据情况动态引入jQuery的方法。
如题:JQ 判断网页 JQ 是否存在
(function(){
if(typeof jQuery == 'undefined'){
document.write('<script src=\"http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js\"><\/script>');
}
})();

被折叠的 条评论
为什么被折叠?