[Javascript] {text: & amp; #39; Delete & amp; #39;, iconCls: & amp; #39; remove & amp; #39;, handler: function () {$ (& quot; testProjectGrid & quot ;). removes ({id: & amp; #39; id & amp; #39;, title
[Javascript]
{
Text: 'delete ',
IconCls: 'delete ',
Handler: function (){
$ ("TestProjectGrid"). removes ({
Id: 'id ',
Title: 'sysname ',
Url: app_path + "/rstestProject_delete.do"
, Success: function (r) {// when you write this success method, the system's success method will not be called. Therefore, if you want to prompt information about the method in the action, must be written by yourself
$ S ("testProjectGrid"). reload ();
$ S ("testProjectDetailGrid"). reload ();
Var data = Ext. decode (r. responseText); // obtain the value passed in from the background.
Var msg = "deleted successfully ";
If (! Ext. isEmpty (data. msg )){
Msg = data. msg;
}
MessageBox ("prompt", msg );
}
})
}
}