Home > Web Front-end > JS Tutorial > Extjs407 Introduction to the difference between getValue() and getRawValue()_extjs

Extjs407 Introduction to the difference between getValue() and getRawValue()_extjs

WBOY
Release: 2016-05-16 17:33:34
Original
1233 people have browsed it

Example:

Copy code The code is as follows:

{
xtype: 'datefield',
width: 100,
id: 'mydate',
format: 'Y-m-d',
value: new Date(),
msgTarget: 'side',
emptyText : 'Please select a date. . . ',
name: 'mydate'
}

mydate.value is the same as getvalue().
mydate.getvalue() returns the object: Wed Mar 07 2007 00:00:00 GMT 0100
It can also be formatted using the following method: mydate.formatDate(myDate.getValue())) : 2007-03 -07
mydate.getRawValue() returns the display value of the control: 2007-03-07 (If the control defines a format, choose to return the format string)
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template