Ext.Ajax.request怎么自动刷新
删除成功后怎么自动刷新Ext.MessageBox.confirm('确认删除','你确认要删除这条数据吗?',function(btn){if(btn=="yes"){...
删除成功后怎么自动刷新
Ext.MessageBox.confirm('确认删除', '你确认要删除这条数据吗?', function(btn) {
if (btn == "yes") {
var msg='';
grid.getSelectionModel().each(function(rec){
msg=rec.get('whyzl.IWhyid');
});
Ext.Ajax.request({
url:'deleteWhyzl.action',
params:{
id:msg
},
method:'POST',
success:function(response,options){
var result=Ext.decode(response.responseText);
if(result.success){
}else{
}
},
failure:function(response,options){
Ext.Msg.alert('提示','删除部门信息请求失败!');
}
}); 展开
Ext.MessageBox.confirm('确认删除', '你确认要删除这条数据吗?', function(btn) {
if (btn == "yes") {
var msg='';
grid.getSelectionModel().each(function(rec){
msg=rec.get('whyzl.IWhyid');
});
Ext.Ajax.request({
url:'deleteWhyzl.action',
params:{
id:msg
},
method:'POST',
success:function(response,options){
var result=Ext.decode(response.responseText);
if(result.success){
}else{
}
},
failure:function(response,options){
Ext.Msg.alert('提示','删除部门信息请求失败!');
}
}); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询