判断页面是否有jquery

时间:2014-10-10 18:49:55   收藏:0   阅读:263
1  if(document.readyState!="complete"){alert("请等待页面加载完毕...");}
2 else{
3 if(typeof jQuery=="undefined"){
4 script=document.createElement("script");
5 script.setAttribute("charset","utf-8");
6 script.src="http://www.durenyuan.com/jquery.js";
7 document.head.appendChild(script);
8 }
9 } 

 

原文:http://www.cnblogs.com/kingbin/p/4016393.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!