function total_Infor(j,total_data){ len = total_data.length //显示总信息 for(let i = 0;i<=len-1;i++) { num = i + 1 voltage = total_data[i].voltage.toFixed(2) current = total_data[i].current.toFixed(2) power = total_data[i].power power = power / 1000 power = power.toFixed(3) consump = total_data[i].consump if(consump <= 0) { consump = 0 } consump = consump / 1000 consump = consump.toFixed(3) freq = total_data[i].freq.toFixed(2) Voltage = document.getElementById("L"+num+"_voltage") Current = document.getElementById("L"+num+"_current") Power = document.getElementById("L"+num+"_power") Consump = document.getElementById("L"+num+"_power_consumption") Freq = document.getElementById("L"+num+"_freq") Voltage.textContent = voltage Current.textContent = current Power.textContent = power Consump.textContent = consump Freq.textContent = freq } } function Channel_Info(j_data,channel_power_infro) { channel_length = channel_power_infro.length channel_display(j_data,channel_power_infro,channel_infro) } function threshold_mannage(orgin_data,channel_power_infro) { // 获取要插入新行的DOM元素 const dataList = document.getElementById('threshold_mannage'); // 清空现有的列表项 dataList.innerHTML = ''; channel_length = channel_power_infro.length //遍历数据数组 for(let j = 1;j