删除块(公共删除功能)
function doDeleteEntity(obj, url, param){
apex.ctrl.frm.showMsg({type:'confirm',body : 'Are you sure you want to delete the fields?', callback:function(){
$.ajax({
type : "POST",
//async : true,
url : url,
data : param,
dataType : 'json',
success : function(data) {
apex.ctrl.frm.showMsg({ type : 'info', body : 'Delete success' });
$(obj).remove();
}
});
}
});
}
apex.ctrl.frm.showMsg({type:'confirm',body : 'Are you sure you want to delete the fields?', callback:function(){
$.ajax({
type : "POST",
//async : true,
url : url,
data : param,
dataType : 'json',
success : function(data) {
apex.ctrl.frm.showMsg({ type : 'info', body : 'Delete success' });
$(obj).remove();
}
});
}
});
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
spa页面,不同组件按需引入js,aliplayer
(function(d, s, id) { let js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) retur