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

19 lines
394 B
Markdown
Raw Normal View History

2015-09-07 12:32:31 +08:00
# 错误或失败
- order: 1
2015-09-07 12:32:31 +08:00
操作失败反馈。
---
````jsx
var message = antd.message;
2015-07-11 18:00:58 +08:00
var error = function() {
message.error('这是一条失败的提示这是一条失败的提示这是一条失败的提示');
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={error}>显示失败提示</button>
, document.getElementById('components-message-demo-error'));
````