码迷,mamicode.com
首页 > Web开发 > 详细

判断页面是否有jquery

时间:2014-10-10 19:25:24      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   ar   sp   div   log   ad   

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

标签:style   blog   http   color   ar   sp   div   log   ad   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!