<script type="text/javascript">
Ext.onReady(function(){
Ext.MessageBox.msgButtons[1].setText("确认1");
Ext.MessageBox.show({
title:"提示",
msg:"sda",
buttons:Ext.Msg.YES
});
});
Ext.onReady(function(){
Ext.MessageBox.msgButtons[1].setText("确认1");
Ext.MessageBox.show({
title:"提示",
msg:"sda",
buttons:Ext.Msg.YES
});
});
</script>
Extjs 4.2 中 Ext.MessageBox.msgButtons[0].setText()方法没有效果,需要使用Ext.MessageBox.buttonText
<script type="text/javascript">
Ext.onReady(function(){
Ext.MessageBox.buttonText.yes="234";
Ext.MessageBox.show({
title:"提示",
msg:"sda",
buttons:Ext.Msg.YES
});
});
</script>