var createRemoveButton = function(instance, removeMethod, removeIcon) {
return $("<a>")
.attr("id", "remove_" + instance.offerKey + "_" + instance.offerConfigurationId)
.attr("style", "cursor: pointer;")
.click(function(event) {
removeMethod(instance.offerConfigurationId);
})
.append($("<img>").attr("src", removeIcon));
};
现在怎么用removeMethod
?这removeMethod
可以是 JavaScript 方法吗?我正在学习 ajax anyonmous 方法,但我遇到了问题。