gpt4 book ai didi

jquery.event.drag TypeError : $event. fixHooks 未定义

转载 作者:行者123 更新时间:2023-12-01 00:03:44 24 4
gpt4 key购买 nike

我正在使用 jquery 的 roundabout 插件。我想添加 3dubs 拖放插件来增强它,但我不断收到 $event.fixHooks 错误。有人可以解释一下这个错误是什么以及是否有解决办法吗?

这是我的代码:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.roundabout.min.js"></script>
<script src="js/jquery.event.drag-2.2.js"></script>
<script src="js/jquery.event.drop-2.2.js"></script>
<script type='text/javascript'>

$(document).ready(function() {

$('ul').roundabout();
});
</script>

<style type="text/css">

* {

padding: 0;
margin: 0;
border: 0;
}

#carousel {

margin: 300px 0 0 100px;
text-align: center;
}

.roundabout-holder {
list-style: none;
padding: 0;
margin: 0 auto;
height: 200px;
width: 800px;
}

.roundabout-moveable-item {
height: 200px;
width: 300px;
cursor: pointer;
background-color: #ccc;
border: 1px solid #999;
}

.roundabout-in-focus {
cursor: auto;
}
</style>

<title>Round About Test</title>
</head>

<body>

<div id="carousel">

<ul>
<li>Carousel Item 1</li>
<li>Carousel Item 2</li>
<li>Carousel Item 3</li>
<li>Carousel Item 4</li>
<li>Carousel Item 5</li>
<li>Carousel Item 6</li>
</ul>
</div>

</body>
</html>

这是完整的错误:

TypeError: $event.fixHooks is undefined

filter: function( event, orig ) {

最佳答案

您需要使用 jQuery >= 1.7 和 < 3.*

jQuery 1.6.2 中没有 fixHooks

插件的主页上应该提到所需的 jQuery 版本。

关于jquery.event.drag TypeError : $event. fixHooks 未定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11905709/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com