Ext.Msg.confirm的按钮是yes 和 no
我要怎么样才能把他修改为 ok 和 cancel?
[b]问题补充:[/b]
没有办法,我必须使用confirm方法,但是又得修改它的按钮,哥们帮 帮忙吧,谢谢了!
Ext.Msg.confirm的按钮是yes 和 no
我要怎么样才能把他修改为 ok 和 cancel?
[b]问题补充:[/b]
没有办法,我必须使用confirm方法,但是又得修改它的按钮,哥们帮 帮忙吧,谢谢了!
[code="js"]Ext.onReady(function() {
Ext.MessageBox.confirm = function(title, msg, fn, scope) {
this.show({
title : title,
msg : msg,
buttons : this.OKCANCEL,
fn : fn,
scope : scope,
icon : this.QUESTION
});
return this;
}
Ext.Msg.confirm('标题', '消息');
});[/code]
没有放好:)