We will show the contents of the database and the value of some value converted into Chinese characters

1. Place the contents of the database to show up

Reception without making the code change, because the beginning is not shown because 

data-field is not the same with database data-field needs like a database can

 

2. convert some value to a value kanji

Check out the list table

Mainly used Formatter

Reception html code

<th data-field = "bottomcontract " data-formatter = "bottomcontractFormatter"> minimum guarantee contract </ TH> 

JS codes (code execution condition values are stored in the database 1, and then returns refrigerated contract)
bottomcontractFormatter function (value, Row, index) { 
IF (value == '. 1') {
return "frozen contract";
} the else {
return "-";
}
}

3. When a new field is added to the database when all required table of contents have increased again

Guess you like

Origin www.cnblogs.com/snail8698428/p/10950326.html