From a4407e09c3c89618ac18b83ce06443a0c1cef425 Mon Sep 17 00:00:00 2001 From: 18159787493 <18159787493> Date: Tue, 14 Feb 2023 10:19:06 +0800 Subject: [PATCH 1/5] =?UTF-8?q?'=E4=B8=8A=E4=BC=A0=E6=B5=8B=E8=AF=95'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\270\212\344\274\240\346\265\213\350\257\225.txt" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" diff --git "a/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" "b/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" new file mode 100644 index 00000000..e69de29b -- Gitee From 0690e25111ae2dbe0f022260dea74fb0a703e0c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?5-=E5=90=B4=E5=93=B2=E6=B6=94?= <2949217602@qq.com> Date: Tue, 14 Feb 2023 02:21:51 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E5=91=A8=E5=BF=97=E6=9D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2\346\234\21014.html" | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 "\345\221\250\345\277\227\346\235\260/2\346\234\21014.html" diff --git "a/\345\221\250\345\277\227\346\235\260/2\346\234\21014.html" "b/\345\221\250\345\277\227\346\235\260/2\346\234\21014.html" deleted file mode 100644 index 5b741126..00000000 --- "a/\345\221\250\345\277\227\346\235\260/2\346\234\21014.html" +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - 纪2023年2月14日 - - - 城南小陌又逢春,只见桃花不见人. 人有生老三千疾,唯有相思不可医. - - \ No newline at end of file -- Gitee From b7854cc221b94d1ae6aa1d7888952c7e49fe6ca2 Mon Sep 17 00:00:00 2001 From: 18159787493 <18159787493> Date: Tue, 14 Feb 2023 10:36:56 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=B5=8B=E8=AF=952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\270\212\344\274\240\346\265\213\350\257\225.txt" | 1 + 1 file changed, 1 insertion(+) diff --git "a/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" "b/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" index e69de29b..b838a4b6 100644 --- "a/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" +++ "b/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" @@ -0,0 +1 @@ +ajsbcfasc \ No newline at end of file -- Gitee From fd0e9bcce1fcfcbf406b206b19918842f51f818b Mon Sep 17 00:00:00 2001 From: unknown <2949217602@qq.com> Date: Tue, 14 Feb 2023 13:05:47 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\270\212\344\274\240\346\265\213\350\257\225.txt" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" "b/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" index b838a4b6..f011bdc6 100644 --- "a/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" +++ "b/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" @@ -1 +1 @@ -ajsbcfasc \ No newline at end of file +上传测试3 \ No newline at end of file -- Gitee From 3d94e4ee26ac2d233ea2df2595ae5bbc1639c77c Mon Sep 17 00:00:00 2001 From: unknown <2949217602@qq.com> Date: Wed, 15 Feb 2023 17:36:46 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main.js" | 12 ++++++++++++ .../user.js" | 2 ++ ...\270\212\344\274\240\346\265\213\350\257\225.txt" | 1 - 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 "\345\220\264\345\223\262\346\266\224/node\350\256\241\347\256\227\345\231\250/main.js" create mode 100644 "\345\220\264\345\223\262\346\266\224/node\350\256\241\347\256\227\345\231\250/user.js" delete mode 100644 "\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" diff --git "a/\345\220\264\345\223\262\346\266\224/node\350\256\241\347\256\227\345\231\250/main.js" "b/\345\220\264\345\223\262\346\266\224/node\350\256\241\347\256\227\345\231\250/main.js" new file mode 100644 index 00000000..8ad2cf9a --- /dev/null +++ "b/\345\220\264\345\223\262\346\266\224/node\350\256\241\347\256\227\345\231\250/main.js" @@ -0,0 +1,12 @@ +let formula = require("./user.js"); +if (/^[0-9-+()*/.]{0,}$/.test(formula.str)) { + var end = eval(formula.str); + if (formula.str.indexOf("/") > -1) { + for (var i = 1; i < formula.str.split("/").length; i++) { + end = eval(formula.str.split("/")[i]) == 0 ? "除号后面不能为0!" : eval(formula.str); + } + } + console.log(end); +} else { + console.log("运用非法字符!"); +} diff --git "a/\345\220\264\345\223\262\346\266\224/node\350\256\241\347\256\227\345\231\250/user.js" "b/\345\220\264\345\223\262\346\266\224/node\350\256\241\347\256\227\345\231\250/user.js" new file mode 100644 index 00000000..42b1434d --- /dev/null +++ "b/\345\220\264\345\223\262\346\266\224/node\350\256\241\347\256\227\345\231\250/user.js" @@ -0,0 +1,2 @@ +var str = "1/(1*2-2)"; +exports.str = str; \ No newline at end of file diff --git "a/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" "b/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" deleted file mode 100644 index f011bdc6..00000000 --- "a/\345\220\264\345\223\262\346\266\224/\344\270\212\344\274\240\346\265\213\350\257\225.txt" +++ /dev/null @@ -1 +0,0 @@ -上传测试3 \ No newline at end of file -- Gitee