gpt4 book ai didi

jquery - jQuery jEditable 取消事件的回调

转载 作者:行者123 更新时间:2023-12-01 04:15:58 25 4
gpt4 key购买 nike

我使用 Mike Tuupola 的 jQuery jEditable,如下所示:

function wireupTagCategoryInPlaceEditing() {

$('.category-label').editable(submitTagCategoryEdit, {
event: 'tagcategoryedit', // conditionally triggered in wireupTagCategoryClick()
type: 'text',
submit: ' Ok ',
cancel: 'Cancel',
cssclass: 'tagcategory-inplace-edit'
});

}

function submitTagCategoryEdit(value, settings) {
//handle the edit
}

我需要拦截取消事件 - 最好的方法是什么

最佳答案

使用thisthis

$("#editable_text").editable(submitEdit, { 
//...
onreset: jeditableReset,
//...
});

function jeditableReset(settings, original) {
// whatever you need to do here
}

关于jquery - jQuery jEditable 取消事件的回调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14605442/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com