标签:char quit formatter ram javascrip nim UNC function param
echarts在tooltip中换行操作就是操作html标签
tooltip: {
trigger: 'axis',
formatter: function (params) {
let paramsEquity = params[0];
var date = new Date(paramsEquity.name);
let paramsBalance = params[1]
return '<span style="float:left;">' + date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate() + '</span></br>' + '<span style="float:left;">净值: ' + paramsEquity.value[1] + '</span></br>' + '<span style="float:left;">余额: ' + paramsBalance.value[1] + '</span';
},
axisPointer: {
animation: false
}
},
标签:char quit formatter ram javascrip nim UNC function param
原文地址:https://www.cnblogs.com/eternityz/p/12271923.html