Ext.MessageBox.confirm( 'Confirm delete', '您确定要删除该托盘?', function(btn) { if (btn == 'yes') { doPalletDelete(selected); } } );