From d4556f847525962d27e0916a439638ac24660ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E6=99=93=E6=99=B6?= <18378873921> Date: Tue, 14 Feb 2023 10:51:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?'=E6=BD=98=E6=99=93=E6=99=B6'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2\346\234\21014.html" | 12 ------------ .../\346\275\230.txt" | 1 + 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 "\345\221\250\345\277\227\346\235\260/2\346\234\21014.html" create mode 100644 "\346\275\230\346\231\223\346\231\266/\346\275\230.txt" 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 diff --git "a/\346\275\230\346\231\223\346\231\266/\346\275\230.txt" "b/\346\275\230\346\231\223\346\231\266/\346\275\230.txt" new file mode 100644 index 00000000..3794256d --- /dev/null +++ "b/\346\275\230\346\231\223\346\231\266/\346\275\230.txt" @@ -0,0 +1 @@ +今天是星期二,也是这个学期的第一节课,也是情人节。 \ No newline at end of file -- Gitee From ff845cdc362df58ce300b4dc3b49a64b2718e4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E6=99=93=E6=99=B6?= <18378873921> Date: Wed, 15 Feb 2023 17:24:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?'=E4=BD=9C=E4=B8=9A1'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coulate.js" | 19 +++++++++++++++++++ .../coulcde.js" | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 "\346\275\230\346\231\223\346\231\266/\345\212\240\345\207\217\344\271\230\351\231\244/coulate.js" create mode 100644 "\346\275\230\346\231\223\346\231\266/\345\212\240\345\207\217\344\271\230\351\231\244/coulcde.js" diff --git "a/\346\275\230\346\231\223\346\231\266/\345\212\240\345\207\217\344\271\230\351\231\244/coulate.js" "b/\346\275\230\346\231\223\346\231\266/\345\212\240\345\207\217\344\271\230\351\231\244/coulate.js" new file mode 100644 index 00000000..f11f876b --- /dev/null +++ "b/\346\275\230\346\231\223\346\231\266/\345\212\240\345\207\217\344\271\230\351\231\244/coulate.js" @@ -0,0 +1,19 @@ +let obj = { + jia: function(a , b){ + return a + b; + }, + jian: function(a , b){ + return a - b; + }, + cheng: function(a , b){ + return a * b; + }, + chu:function(a , b) { + if (b !== 0) { + return (a / b); + } + return 0; + } + +} +module.exports = obj; \ No newline at end of file diff --git "a/\346\275\230\346\231\223\346\231\266/\345\212\240\345\207\217\344\271\230\351\231\244/coulcde.js" "b/\346\275\230\346\231\223\346\231\266/\345\212\240\345\207\217\344\271\230\351\231\244/coulcde.js" new file mode 100644 index 00000000..8caeea5a --- /dev/null +++ "b/\346\275\230\346\231\223\346\231\266/\345\212\240\345\207\217\344\271\230\351\231\244/coulcde.js" @@ -0,0 +1,5 @@ +let obj=require("./coulate.js"); +console.log(obj.jia(15, 2)); +console.log(obj.jian(14, 2)); +console.log(obj.cheng(13, 2)); +console.log(obj.chu(12, 2)); \ No newline at end of file -- Gitee