2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 0
|
2016-06-19 11:17:09 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 基本
|
|
|
|
en-US: Basic
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-12-10 16:12:10 +08:00
|
|
|
|
2016-06-19 11:17:09 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-12-10 16:12:10 +08:00
|
|
|
最简单的用法。
|
|
|
|
|
2016-06-19 11:17:09 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
The most basic usage.
|
|
|
|
|
2015-12-10 16:12:10 +08:00
|
|
|
````jsx
|
|
|
|
import { DatePicker } from 'antd';
|
|
|
|
|
2016-03-28 12:18:30 +08:00
|
|
|
function onChange(value, dateString) {
|
|
|
|
console.log(value, dateString);
|
2015-12-25 01:21:03 +08:00
|
|
|
}
|
|
|
|
|
2015-12-29 12:08:58 +08:00
|
|
|
ReactDOM.render(<DatePicker onChange={onChange} />, mountNode);
|
2015-12-10 16:12:10 +08:00
|
|
|
````
|