From 3e788004c97034f6d7d52ffdbffacf60e94c48f7 Mon Sep 17 00:00:00 2001
From: cshenfu <men883234@gmail.com>
Date: 星期五, 10 三月 2023 15:27:29 +0800
Subject: [PATCH] 读取文件

---
 read_com/test.js |  110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 109 insertions(+), 1 deletions(-)

diff --git a/read_com/test.js b/read_com/test.js
index 46e302c..7326972 100644
--- a/read_com/test.js
+++ b/read_com/test.js
@@ -5,4 +5,112 @@
     console.log(ports); // 鎵撳嵃涓插彛鍒楄〃
 }).catch((err) => {
     console.log(err);
-});
\ No newline at end of file
+});
+
+
+// const arr = [43.4,34,34,243,56,4657,86,6,34,34]
+// let sum = 0
+// for(let i=0;i<arr.length;i++){
+//     sum+=arr[i]
+// }
+// console.log(sum)
+// // console.log(eval(arr.join('+'))) //璁$畻鏁扮粍鎬诲拰
+
+
+// option = {
+//     tooltip: {},
+//     backgroundColor: '#fff',
+//     visualMap: [{
+//         show: false,
+//         dimension:0,//鎸夌収x杞存笎鍙�
+//         min: 0,//TODO闇�瑕佹牴鎹暟鎹姩鎬佽皟鏁�
+//         max: 1800,//TODO闇�瑕佹牴鎹暟鎹姩鎬佽皟鏁�
+//     // let mapMax = Math.max(...data.map(item => item[2]));
+//     // let mapMin = Math.min(...data.map(item => item[2]));
+//         seriesIndex: 0,
+//         target: {
+//             inRange: {
+//             color: ['rgba(168,172,249,0.6)','rgba(130,103,191,0.6)', 'rgba(160,82,164,0.8)','rgba(190,247,212,0.6)', 'rgba(215,237,192,0.6)','rgba(246,143,137,0.6)']
+//             // color: ['red','green']
+//             }
+//         },
+
+//     },{
+//         show: false,
+//         seriesIndex: 1,
+//         target: {
+//             inRange: {
+//                 symbolSize: [10, 20],
+//                 color: 'red'
+//             },
+//         }
+//     }],
+//     xAxis3D: {
+//         type: 'value',
+//         name: 'x',
+//         splitArea: {
+//             show: true,
+//             areaStyle: {
+//                 color: ['rgb(248,248,248)','rgb(248,248,248)']
+//             }
+//         }
+//     },
+//     yAxis3D: {
+//         type: 'value',
+//         name: 'y',
+//         splitArea: {
+//             show: true,
+//             areaStyle: {
+//                 color: ['rgb(248,248,248)','rgb(248,248,248)']
+//             }
+//         }
+//     },
+//     zAxis3D: {
+//         type: 'value',
+//         name: 'z',
+//         splitArea: {
+//             show: true,
+//             areaStyle: {
+//                 color: ['rgb(248,248,248)','rgb(248,248,248)']
+//             }
+//         }
+//     },
+//     grid3D: {
+//         // environment: 'rgb(248,248,248)',
+//         viewControl: {
+//             // projection: 'orthographic'
+//             // beta: -45
+//         }
+//     },
+//     series: [{
+//         type: 'surface',
+//         name: 'test',
+//         wireframe: {
+//             show: false
+//         },
+//         zlevel: -10,
+//         data: [
+//             [0,20,0.006],[1000,20,0.009],[1200,20,0.0095],[1500,20,0.010],
+//             // [0,40,0.016],[1000,40,0.022],[1200,40,0.024],[1500,40,0.025],
+//             [0,60,0.006],[1000,60,0.012],[1200,60,0.014],[1500,60,0.015],
+//             [0,80,0.008],[1000,80,0.015],[1200,80,0.017],[1500,80,0.020],
+//             [0,100,0.015],[1000,100,0.022],[1200,100,0.026],[1500,100,0.032],
+//         ] 
+//         //杩欓噷鐨勭偣鍧愭爣鏄殢渚垮啓鐨勶紝浣嗘槸闇�瑕佷竴瀹氱殑瑙勫緥锛屽惁鍒欏彲鑳芥覆鏌撲笉鍑烘潵銆�
+//         //姣斿鍗氫富杩欓噷鍐欑殑鏄細
+//         //绗竴琛屽浐瀹歽=20锛寈鍜寊鏀瑰彉锛�
+//         //绗簩琛屽浐瀹歽=40锛屽悓鏃秞鎸夌収绗竴鎺抶鐨勮寰嬪啓锛寊鑷敱鏀瑰彉锛屼互姝ょ被鎺�...锛堜粎涓汉鐚滄祴锛�
+       
+//     },{
+//         type: 'scatter3D',
+//         // symbol: 'circle',
+//         symbol: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z',
+//         zlevel: 10,
+//         itemStyle:{
+//             color: 'black'
+//         },
+//         data:[
+//             [600,28,0.007],[1109,27,0.007],[1763,88,0.064]
+//         ]
+//     }]
+// }

--
Gitblit v1.9.1