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

20 lines
399 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 Button = antd.Button;
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
};
React.render(<Button type="primary" onClick={error}>显示失败提示</Button>
2015-07-11 18:00:58 +08:00
, document.getElementById('components-message-demo-error'));
````