--- order: 2 title: 不可用 --- 点击按钮切换可用状态。 ````jsx import { InputNumber, Button } from 'antd'; const Test = React.createClass({ getInitialState() { return { disabled: true, }; }, toggle() { this.setState({ disabled: !this.state.disabled, }); }, render() { return (