读书人

Extjs4.0 datefield 有关问题

发布时间: 2012-03-09 16:54:58 作者: rapoo

Extjs4.0 datefield 问题
请问在已经选了时间后,怎么去除已选定的时间?

[解决办法]

JScript code
<html><head><link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css"><script type="text/javascript" src="extjs/bootstrap.js"></script><script type='text/javascript'>Ext.onReady(function(){    Ext.create('Ext.form.Panel', {        title : 'Date field',        width : 400,        height : 300,        renderTo : Ext.getBody(),        items : [{            id : 'testdate',            xtype : 'datefield',            fieldLabel : 'date',            name : 'today'        }],        buttons : [{            text : 'Reset',            handler : function(){                this.up('form').getForm().reset();            }        },{            text : 'clear',            handler : function(){                Ext.getCmp('testdate').reset();            }        }]    });});</script></head><body></body></html> 

读书人网 >JavaScript

热点推荐