functiontoParseInt(data){for(let d in data){toParseInt(data[d])if(!(data[d]instanceofObject)){// console.log(d,'----')// console.log(data[d],'++++')if(d =='chainRatio'|| d =='yearOnWeek'){
data[d]= data[d].toFixed(4)}else{
data[d]= data[d].toFixed(2)}//console.log(parseInt(data[d]));}}}toParseInt(this.instantData)
方法一:function toParseInt(data) { for (let d in data) { toParseInt(data[d]) if (!(data[d] instanceof Object)) { // console.log(d,'----') // console.log(data[d],'++++') if (d == 'chainRatio' |.