Home > front end >  O god! The inside of the <p> tag data each time becomes a refresh, how did this happen?
O god! The inside of the <p> tag data each time becomes a refresh, how did this happen?

Time:09-25

The inside of the tag data each time becomes a refresh, how did this happen?

This p tags inside of the data, for example, not a becomes a refresh,

CodePudding user response:

This is generally the background variables directly output

<% %=dataValue & gt;



Or at the beginning of the page with ajax requests the background data, dynamic update the content of the p tag,

CodePudding user response:

Es6 you can be set in the project of the state
The constructor (props) {
Super (props);
This. State={
Value: 'text1,
};
}
Then the page shown in
{this. State. The value} & lt;/div>

Dynamic update this this. As long as the operation state. The value is ok,
  • Related