信息发布→ 登录 注册 退出

Extjs407 getValue()和getRawValue()区别介绍

发布时间:2026-01-11

点击量:
例子:
复制代码 代码如下:
{
xtype: 'datefield',
width: 100,
id: 'mydate',
format: 'Y-m-d',
value: new Date(),
msgTarget: 'side',
emptyText: '请选择日期。。。',
name: 'mydate'
}

mydate.value 和getvalue() 一样的。
mydate.getvalue() 返回的是对象: Wed Mar 07 2007 00:00:00 GMT+0100
也可以用以下方法格式化:mydate.formatDate(myDate.getValue())) : 2007-03-07
mydate.getRawValue() 返回的是该控件的显示值:2007-03-07 (如果控件定义了格式的,择返回该格式字符串)
标签:# mydate  # id  # BR  # width  # span  # xtype  # datefield  # side  # emptyText  # getValue  # format  # Date  # msgTarget  # 请选择  # 可以用  # 的是  # getRawValue  
在线客服
服务热线

服务热线

4008888355

微信咨询
二维码
返回顶部
×二维码

截屏,微信识别二维码

打开微信

微信号已复制,请打开微信添加咨询详情!