+ -
当前位置:首页 → 问答吧 → jquery sortable插件問題

jquery sortable插件問題

时间:2009-05-06

来源:互联网

$('.A').sortable({
        stop : function (event , ui ) {
        ///這裏面ui代表的是什麼對象呢?有什麼用法?
                   },
});

作者: amw   发布时间: 2009-05-06

ui.helper - the current helper element (most often a clone of the item)
ui.position - current position of the helper
ui.offset - current absolute position of the helper
ui.item - the current dragged element
ui.placeholder - the placeholder (if you defined one)
ui.sender - the sortable where the item comes from (only exists if you move from one connected list to another)

例如你拖动的对象就是ui.item

作者: keakon   发布时间: 2009-05-06

sortable({
         stop: funcion (event, ui ) {
                   alert(ui.position);  
         },
});
我這樣用時瀏覽器報錯,而且變量undifinded

作者: amw   发布时间: 2009-05-07

相关阅读 更多