/**
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>
详细解决方案
动态更新对话框中的揭示文字
热度:108 发布时间:2012-10-06 17:34:01.0
相关解决方案