(function ($) {
    $.fn.liveDraggable = function (opts) {
        this.live("mouseover", function () {
            if (!$(this).data("init")) {
                $(this).data("init", true).draggable(opts);
            }
        });
        return $();
    };
} (jQuery));

(function ($) {
    $.fn.liveDroppable = function (opts) {
        this.live("mouseover", function () {
            if (!$(this).data("init")) {
                $(this).data("init", true).droppable(opts);
            }
        });
        return $();
    };
} (jQuery));

  

相关文章:

  • 2021-09-15
  • 2021-12-29
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-09-21
猜你喜欢
  • 2021-06-05
  • 2021-07-10
  • 2022-01-31
  • 2021-05-06
  • 2022-12-23
相关资源
相似解决方案