Extjs 4.2 中 Ext.MessageBox.msgButtons[0].setText()方法没有效果

来源:互联网 发布:文言文虚词乎 编辑:程序博客网 时间:2024/04/30 21:15
<script type="text/javascript">
    
    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>

原创粉丝点击