From 99fb9fb58379aecac51e38000580568b03e623da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8E=9F=E5=86=AC=E6=A2=85?= <17878161255@example.com> Date: Mon, 21 Feb 2022 21:55:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modulara.js" | 6 ++++++ .../modulb.js" | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 "\345\216\237\345\206\254\346\242\205/node 02.21 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/modulara.js" create mode 100644 "\345\216\237\345\206\254\346\242\205/node 02.21 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/modulb.js" diff --git "a/\345\216\237\345\206\254\346\242\205/node 02.21 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/modulara.js" "b/\345\216\237\345\206\254\346\242\205/node 02.21 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/modulara.js" new file mode 100644 index 0000000..5a4bacb --- /dev/null +++ "b/\345\216\237\345\206\254\346\242\205/node 02.21 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/modulara.js" @@ -0,0 +1,6 @@ +function calculate (a,b,c){ + console.log(a+b+c); + console.log(c-a); + console.log(c-b); +}; +module.exports = calculate; \ No newline at end of file diff --git "a/\345\216\237\345\206\254\346\242\205/node 02.21 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/modulb.js" "b/\345\216\237\345\206\254\346\242\205/node 02.21 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/modulb.js" new file mode 100644 index 0000000..ad3c214 --- /dev/null +++ "b/\345\216\237\345\206\254\346\242\205/node 02.21 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/modulb.js" @@ -0,0 +1,3 @@ +let calculate = require('./modulara.js'); + +calculate(50,10,22); \ No newline at end of file -- Gitee