From a4869b79c140366a4a4bcdbb347c8633c7fd60d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=B5=B7?= <1925957642@qq.com> Date: Tue, 14 Feb 2023 16:19:04 +0800 Subject: [PATCH 1/3] '1' --- ...\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" | 1 + 1 file changed, 1 insertion(+) create mode 100644 "why/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" diff --git "a/why/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/why/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" new file mode 100644 index 0000000..b26b2ef --- /dev/null +++ "b/why/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" @@ -0,0 +1 @@ +qq -- Gitee From 32b97942e23d2d8d2d521c5caf7880cb449b6740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=B5=B7?= <1925957642@qq.com> Date: Tue, 14 Feb 2023 17:12:57 +0800 Subject: [PATCH 2/3] '2' --- .../demo1.js" | 15 +++++++++++++++ .../demo2.js" | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 "why/\346\250\241\345\235\227\344\275\234\344\270\232/demo1.js" create mode 100644 "why/\346\250\241\345\235\227\344\275\234\344\270\232/demo2.js" diff --git "a/why/\346\250\241\345\235\227\344\275\234\344\270\232/demo1.js" "b/why/\346\250\241\345\235\227\344\275\234\344\270\232/demo1.js" new file mode 100644 index 0000000..a9d2dd4 --- /dev/null +++ "b/why/\346\250\241\345\235\227\344\275\234\344\270\232/demo1.js" @@ -0,0 +1,15 @@ +let obj ={ + 'jia':function(){ + return("a+b"); + }, + 'jian':function(){ + return('a-b'); + }, + 'cheng':function(){ + return('a*b'); + }, + 'chu':function(){ + return('a/b'); + } +} +module.exports= obj; \ No newline at end of file diff --git "a/why/\346\250\241\345\235\227\344\275\234\344\270\232/demo2.js" "b/why/\346\250\241\345\235\227\344\275\234\344\270\232/demo2.js" new file mode 100644 index 0000000..520e0c9 --- /dev/null +++ "b/why/\346\250\241\345\235\227\344\275\234\344\270\232/demo2.js" @@ -0,0 +1,7 @@ +let obj=require("./demo1.js"); +var a=1 +var b=2 +console.log(obj.jia(a,b)); +console.log(obj.jian(a,b)); +console.log(obj.cheng(a,b)); +console.log(obj.chu(a,b)); -- Gitee From f0481851e075c4ba86aedf44f2f0a14816ec922e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=8F=A9=E5=AE=87?= <1925957642@qq.com> Date: Tue, 14 Feb 2023 09:14:01 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20why/?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E6=9C=AC=E6=96=87=E6=A1=A3.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" | 1 - 1 file changed, 1 deletion(-) delete mode 100644 "why/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" diff --git "a/why/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/why/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" deleted file mode 100644 index b26b2ef..0000000 --- "a/why/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" +++ /dev/null @@ -1 +0,0 @@ -qq -- Gitee