jQuery版本错误 [英] jquery version error
本文介绍了jQuery版本错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的网页中,我正在尝试同时使用"kwick"和"cycle" jquery插件.当我使用其中之一(与哪一个无关)时,它可以正常运行.但是,当我尝试同时使用两者时,会出现JS运行时错误.
这就是我使用它们的方式:
In my web page, I am tryin to use both "kwick" and "cycle" jquery plug-ins. When I use one of them (does not matter which one) it is running properly. But when I try to use both, it gives an JS runtime error.
This is how I am using them :
<script src="Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="kwick/moo1.2.js" type="text/javascript"></script>
<script src="kwick/myKwcik.js" type="text/javascript"></script>
<script src="Scripts/TniyJs.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>
<script src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"
type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('.slideshow').cycle({
fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
speed: 1500, // speed of the transition (any valid fx speed value)
delay: 500,
});
});
</script>
When I use it like above(in my question) it does not give any error, my 'cycle plug-in' works but 'kwick' does not.
When I move down the "jquery-1.6.4.min.js" to last tag (to the end of the script tags) it throws me the error : Microsoft JScript runtime error: Object doesn't support property or method 'cycle'
when I disable "jquery 1.5" then : Microsoft JScript runtime error: Object doesn't support property or method 'ready'
Please help me If you know the problem or solution.
谢谢.
推荐答案
(文档).ready(功能(){
(document).ready(function () {
(' .slideshow').cycle({ fx:' 淡出',// 选择过渡类型,例如:淡入淡出,scrollUp,随机播放等... 速度: 1500 ,// 转换速度(任何有效的fx速度值) 延迟: 500 , }); }); < / 脚本 >
('.slideshow').cycle({ fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc... speed: 1500, // speed of the transition (any valid fx speed value) delay: 500, }); }); </script>
When I use it like above(in my question) it does not give any error, my 'cycle plug-in' works but 'kwick' does not.
When I move down the "jquery-1.6.4.min.js" to last tag (to the end of the script tags) it throws me the error : Microsoft JScript runtime error: Object doesn't support property or method 'cycle'
when I disable "jquery 1.5" then : Microsoft JScript runtime error: Object doesn't support property or method 'ready'
Please help me If you know the problem or solution.
谢谢.
再次,您好,我从某个人那里找到了解决方案(非常感谢他),
关于该问题,您可以阅读以下内容:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries [
Hi again, I have found the solution from someone (thanks him a lot),
About the problem you can read this:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries[^]
And this is the code, that I changed :
<script type="text/javascript">
var
这篇关于jQuery版本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文