jQuery   发布时间:2022-04-19  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了jquery.event.drag TypeError:$event.fixHooks未定义大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在玩 jquery的roundabout插件.我想添加3dubs拖放插件来增强它,但我不断收到$event.fixHooks@L_262_4@.有人可以解释这个@L_262_4@是什么,是否有修复?

这是我的代码

<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>

这是完整的@L_262_4@:

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未定义全部内容,希望文章能够帮你解决jquery.event.drag TypeError:$event.fixHooks未定义所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。