首页 > Web开发 > 详细

判断页面是否有jquery

时间:2014-10-10 18:49:55      阅读:263      评论:0      收藏:0      [点我收藏+]
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 } 

 

判断页面是否有jquery

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!