mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-28 11:08:30 +08:00
27 lines
317 B
Markdown
27 lines
317 B
Markdown
---
|
|
order: 0
|
|
title:
|
|
zh-CN: 基本
|
|
en-US: Basic
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
最简单的用法。
|
|
|
|
## en-US
|
|
|
|
The most basic usage.
|
|
|
|
````jsx
|
|
import { TimePicker } from 'antd';
|
|
|
|
function onChange(time, timeString) {
|
|
console.log(time, timeString);
|
|
}
|
|
|
|
ReactDOM.render(
|
|
<TimePicker onChange={onChange} />
|
|
, mountNode);
|
|
````
|