动态更新对话框中的揭示文字
动态更新对话框中的提示文字
/** updateText([String text]) text: 可选参数,显示的信息内容 */ <script type="text/javascript"> Ext.onReady(function(){ var msgBox = Ext.MessageBox.show({ title: '提示', msg: '动态更新的信息文字', modal: true, width: 180, buttons: Ext.Msg.OK }); //msgBox.updateText("I'm Pig"); Ext.TaskMgr.start({ run:function(){ msgBox.updateText(new Date().format('Y-m-d g:i:s A')); }, interval:1000 }); }); </script>