2015-09-07 12:32:31 +08:00
|
|
|
# 普通提示
|
2015-07-11 16:40:59 +08:00
|
|
|
|
|
|
|
- order: 2
|
|
|
|
|
2015-09-07 12:32:31 +08:00
|
|
|
信息提醒反馈。
|
2015-07-11 16:40:59 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
2015-10-08 15:13:04 +08:00
|
|
|
var Button = antd.Button;
|
2015-07-11 16:40:59 +08:00
|
|
|
|
|
|
|
var message = antd.message;
|
2015-07-11 18:00:58 +08:00
|
|
|
var info = function() {
|
2015-07-11 11:27:10 +08:00
|
|
|
message.info('这是一条普通的提醒');
|
2015-07-11 18:00:58 +08:00
|
|
|
};
|
2015-07-11 16:40:59 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(<Button type="primary" onClick={info}>显示普通提醒</Button>
|
2015-07-11 18:00:58 +08:00
|
|
|
, document.getElementById('components-message-demo-info'));
|
|
|
|
````
|