CodePudding user response:
Such as your model data and obtain and maintain in the state, this list to get the corresponding condition attribute assignment, you can replace your new to get the data stored in the state of (state) of the data lineCodePudding user response:
Turn the CSDN, saw this post, you will now!Still, step is to set a variable to receive the data, finally traversal assignment
This. State={
StoreList: [],
}
_me. Props. Dispatch ({
Type: 'appStore/getApp',
Content: postJson,
The callback: json=& gt; {
//json=json. Data;
If (json. ErrCode=='20000') {
_me. SetState ({
StoreList: json Data,
})
} else {
Message. The error (json. ErrMsg);
}
}
});
This. State. StoreList. The map ((item, I)=& gt; {
The items. Push (
);
});
CodePudding user response:
Are generally suchInitialize your portions of the index value from the state, and then according to your operation and background operation to get the value of the update specific value
Front end will be updated in the receiving the value of the state and some of your text/input,,,,, take the values in the state
The constructor (props) {
Super (props);
This. State={
Mode: 1,
SelectedRowKeys: [],
AddMaterialModelVisible: false,
The resizable: true,
FrameFilePath: "'
};
}
So, for example,
And then update the values in some of the events
The back=()=& gt; {
Enclosing setState ({mode: 1});
};
Specific how to use your search have