你好
这是我的代码
$('.fc-event').live("mouseover",function(){
if (!$(this).data("init")) {
$(this).data("init", true);
$(this).draggable({
appendTo: 'body',
//opacity: 0.65,
revert: 'invalid',
scroll: true,
scrollSpeed: 50
});
$(this).draggable(
"option",
"helper",
function(){
$('body').append('<div id="dragElement"></div>');
$('#dragElement').maxZIndex({inc : 5});
$('#dragElement').html($(this).find('.fc-event-title').html());
return $('#dragElement');
});
}
});
这不起作用... :( 如果我将事件更改为“hover”,它将起作用(但仅在鼠标移出时...这是无法使用的)。如果我将事件更改为“click”,它也可以工作,只是不能用于“mouseover”。
有什么想法吗?