Ext定时任务
Ext.onReady(function() {
new Ext.form.FieldSet({
renderTo : document.body,
width:300,
title : '现在时间',
labelSeparator : ': ', // 分隔符
height : 75, // 在IE浏览器中就不需要,在火狐浏览器里就要,变态
layout : 'form',
defaultType : 'textfield',
defaults : {
anchor : '98%'
},
items : [{
fieldLabel : "当前系统时间",
id : "time"
}]
});
Ext.TaskMgr.start({
run : function() {
Ext.get("time").dom.value = new Date()
.format('Y-m-d G:i:s');
// Ext.fly("time").dom.value = new
// Date().format('Y-m-d G:i:s');
},
interval : 1000
});
});