You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
354 B

10 years ago
# 基本用法
- order: 0
简单的 checkbox。
---
````jsx
var Checkbox = antd.Checkbox;
var container = document.getElementById('components-checkbox-demo-basic');
10 years ago
function onChange(checked){
console.log('checked = ' + checked);
}
React.render(<label>
<Checkbox defaultChecked={false} onChange={onChange}/> Checkbox
</label>, container);
10 years ago
````