我已经使用了jQuery页面布局。现在我这段代码在jQuery的拖放框中拖动元素
jQuery(function() {
jQuery(".component").draggable({
// use a helper-clone that is append to 'body' so is not 'contained' by a pane
helper: function() { return jQuery(this).clone().appendTo('body').css('zIndex',5).show(); },
cursor: 'move'
});
jQuery('.ui-layout-center').droppable({
accept: '.component',
drop: function() { show('.component') }
});
});
拖动的元素到页面dropable,但现在我不能再拖动到页面中dropable元素。我在代码中犯了什么错误吗?
我得到与上面的代码作为函数_show_ JavaScript错误是undefi斯内德。它是一个自定义函数,或者你想使用jQuery的['.show()'](http://api.jquery.com/show/) – andyb 2012-01-07 14:11:13