我遇到的情况是:我有一个查找大学的searchbox,结果中可用的选项之一是I can't found my college。此选项允许您在其他input type="text"中手动输入您的学院名称,这些only只有在您单击此选项时才会出现。当您单击该选项以手动输入学院时,使用和ng-disable禁用searchbox。我需要实现的功能是,当用户再次单击disable searchbox时,可以再次隐藏其他输入文本以手
但是,Button实例的this.props已经更改为包含新的onClick支柱。换句话说,如果更改了一个shouldComponentUpdate组件元素的道具,那么即使返回false,nextProps也将最终成为this.props。()
return ( <button onClick={this.props.onClick}>This one is stale</button>