 yDatasCPU = [];
    var yDatasMemory = [];
    var cpuChart = echarts.init(document.getElementById("cpu"));
    var memoryChart = echarts.init(document.getElementById("memory"));
    var cpuOption = initChart(cpuChart, "cpu", xDatasCPU, yDatasCPU);
    var memoryOption = initChart(memoryChart, "memory", xDatasMemory, yDatasMemory)
    initMQTT();
    //
    function initChart(chart, name, xDatas, yDatas) {
      // 指定图表的配置项和数据
      var option = {
        title: {
          text: name