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 任意方法を学んでいますが、それに問題があります。