$("#tableData").on("click", ".recall", function() {
var newsId = $(this).parent().data("news_id");
$.ajax({
type: "post",
data: {newsId: newsId},
url: contextPath + "/news/recall",
success: function(result) {
// console.log(result);
},
error: function() {
}
});
});
现在按钮操作已实现但是需要刷新之后才能显示点击后的效果 该怎么修改?
楼主的意思是
删除功能
吧?点击删除后需要手动刷新?可以让其自动刷新:也可以移除整行: