ant-design/components/message/demo/info.md

19 lines
336 B
Markdown
Raw Normal View History

# 基本
- order: 2
2015-07-11 18:00:58 +08:00
全局提示 - 提醒反馈。
---
````jsx
var message = antd.message;
2015-07-11 18:00:58 +08:00
var info = function() {
message.info('这是一条普通的提醒');
2015-07-11 18:00:58 +08:00
};
2015-07-11 18:00:58 +08:00
React.render(<button className="ant-btn ant-btn-primary" onClick={info}>显示普通提醒</button>
, document.getElementById('components-message-demo-info'));
````