mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 16:58:00 +08:00
19 lines
336 B
Markdown
19 lines
336 B
Markdown
# 基本
|
|
|
|
- order: 2
|
|
|
|
全局提示 - 提醒反馈。
|
|
|
|
---
|
|
|
|
````jsx
|
|
|
|
var message = antd.message;
|
|
var info = function() {
|
|
message.info('这是一条普通的提醒');
|
|
};
|
|
|
|
React.render(<button className="ant-btn ant-btn-primary" onClick={info}>显示普通提醒</button>
|
|
, document.getElementById('components-message-demo-info'));
|
|
````
|