From 6c74bf912e251347714099a84585f825b32a1c08 Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期一, 18 十二月 2023 17:52:05 +0800
Subject: [PATCH] Merge branch 'feature-001' of ssh://114.215.109.124:29418/supervision-vue into feature-001

---
 src/test.js |   39 +++++++++++++++------------------------
 1 files changed, 15 insertions(+), 24 deletions(-)

diff --git a/src/test.js b/src/test.js
index 7104bb5..cca19e1 100644
--- a/src/test.js
+++ b/src/test.js
@@ -1,26 +1,17 @@
-const list = [
-  [310104501,	'婕曟渤娉炬柊鍏存妧鏈紑鍙戝尯'],
-  [310104004,	'婀栧崡璺閬�'],
-  [310104003,	'澶╁钩璺閬�'],
-  [310104012,	'铏规璺閬�'],
-  [310104008,	'鏋灄璺閬�'],
-  [310104007,	'鏂滃湡璺閬�'],
-  [310104010,	'闀挎ˉ琛楅亾'],
-  [310104011,	'鐢版灄琛楅亾'],
-  [310104013,	'搴峰仴鏂版潙琛楅亾'],
-  [310104014,	'寰愬姹囪閬�'],
-  [310104015,	'鍑屼簯璺閬�'],
-  [310104016,	'榫欏崕琛楅亾'],
-  [310104017,	'婕曟渤娉捐閬�'],
-  [310104103,	'鍗庢尘闀�'],
-];
+const shape = {
+  radius: 9,
+  d() {
+    return this.radius * 2;
+  },
+  p: () => 2 * Math.PI * this.radius,
+};
 
-const result = [];
-list.forEach((l) => {
-  result.push({
-    label: l[1],
-    value: l[0] + '',
-  });
-});
+console.log(shape.d());
+console.log(shape.p());
 
-console.log(result);
+const str = 'abc';
+if (str[0] >= 'a' && str[0] <= 'z') {
+  let a = parseInt(str[0]);
+  a -= 32;
+  console.log(a);
+}

--
Gitblit v1.9.3