检测jquery是否正确引入
1 if(typeof(jQuery)=="undefined"){ 2 alert("jQuery is not imported"); 3 }else{ 4 alert("jQuery is imported"); 5 }
将代码复制到script的函数中即可。
例如:
然后写个Button调用函数即可。
另附几个jquery地址:
Google
Microsoft
baidu
1 if(typeof(jQuery)=="undefined"){ 2 alert("jQuery is not imported"); 3 }else{ 4 alert("jQuery is imported"); 5 }
将代码复制到script的函数中即可。
例如:
然后写个Button调用函数即可。
另附几个jquery地址:
Google
Microsoft
baidu