馬老師多線程與高并發(fā)編程
2022-10-26 20:39 作者:janet19961217 | 我要投稿
function Component(props, context, updater) {
?this.props = props;
?this.context = context;
?this.refs = emptyObject;
?this.updater = updater || ReactNoopUpdateQueue;}Component.prototype.isReactComponent = {};Component.prototype.setState = function(partialState, callback) {
?this.updater.enqueueSetState(this, partialState, callback, 'setState'); // ??? enqueueSetState };
標(biāo)簽: