请问在已经选了时间后,怎么去除已选定的时间?
------解决方案--------------------
- 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>