简体   繁体   English

jQuery UI可排序刷新不会触发更新?

[英]jquery ui sortable refresh doesn't trigger update?

update: function(event, ui) {
            console.dir("update");    
        },

Why update is not triggered by: 为什么更新不是由以下原因触发的:

$(...).sortable('refresh');

?

And if it's not supposed to, than how to I trigger event after refresh? 如果不是应该的,那么刷新后如何触发事件呢?

You can add .trigger('update') if you wish. 您可以根据需要添加.trigger('update')

I would question why a refresh requires an update . 我会问为什么刷新需要update Maybe better to have the functionality elsewhere and call it after the refresh. 最好在其他地方具有该功能,然后在刷新后调用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM