From 960a956995ad210bb9fb18b017796a085033468b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E4=BA=91?= <3329280162@qq.com> Date: Mon, 13 Feb 2023 16:35:11 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "2-13/\347\254\224\350\256\260.txt" | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 "2-13/\347\254\224\350\256\260.txt" diff --git "a/2-13/\347\254\224\350\256\260.txt" "b/2-13/\347\254\224\350\256\260.txt" new file mode 100644 index 0000000..a11f6e9 --- /dev/null +++ "b/2-13/\347\254\224\350\256\260.txt" @@ -0,0 +1,6 @@ +git branch 显示分支 +git branch 分支名 创建分支 +git add 添加文件 +git status 添加到当前分支 +commit -m '内容' 上传 +push 提交 -- Gitee From 0069f601522c9ee7b3a586c46f4dab673cc5a0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E4=BA=91?= <3329280162@qq.com> Date: Mon, 13 Feb 2023 16:50:13 +0800 Subject: [PATCH 2/5] zy --- "214/\345\202\273\351\200\274.txt" | 1 + 1 file changed, 1 insertion(+) create mode 100644 "214/\345\202\273\351\200\274.txt" diff --git "a/214/\345\202\273\351\200\274.txt" "b/214/\345\202\273\351\200\274.txt" new file mode 100644 index 0000000..cdccbef --- /dev/null +++ "b/214/\345\202\273\351\200\274.txt" @@ -0,0 +1 @@ +sjdfwehfohjknxcj \ No newline at end of file -- Gitee From 401ebceb0a32231deb89f25828ea21da909e13c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E4=BA=91?= <3329280162@qq.com> Date: Mon, 13 Feb 2023 08:57:09 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20214?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "214/\345\202\273\351\200\274.txt" | 1 - 1 file changed, 1 deletion(-) delete mode 100644 "214/\345\202\273\351\200\274.txt" diff --git "a/214/\345\202\273\351\200\274.txt" "b/214/\345\202\273\351\200\274.txt" deleted file mode 100644 index cdccbef..0000000 --- "a/214/\345\202\273\351\200\274.txt" +++ /dev/null @@ -1 +0,0 @@ -sjdfwehfohjknxcj \ No newline at end of file -- Gitee From eb7e75421cc01fceed79ed8cdaef34ace35923ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E4=BA=91?= <3329280162@qq.com> Date: Mon, 13 Feb 2023 17:09:34 +0800 Subject: [PATCH 4/5] zy --- "2-13/\347\254\224\350\256\260.txt" | 1 + 1 file changed, 1 insertion(+) diff --git "a/2-13/\347\254\224\350\256\260.txt" "b/2-13/\347\254\224\350\256\260.txt" index a11f6e9..87f962f 100644 --- "a/2-13/\347\254\224\350\256\260.txt" +++ "b/2-13/\347\254\224\350\256\260.txt" @@ -2,5 +2,6 @@ git branch 显示分支 git branch 分支名 创建分支 git add 添加文件 git status 添加到当前分支 +git checkout 分支名 切换分支 commit -m '内容' 上传 push 提交 -- Gitee From 69ae1787959f745573e1262d94465753c8c71685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E4=BA=91?= <3329280162@qq.com> Date: Wed, 15 Feb 2023 11:08:24 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2-13/\347\254\224\350\256\260.txt" | 0 .../jie.js" | 5 +++ .../zy.js" | 43 +++++++++++++++++++ 3 files changed, 48 insertions(+) rename "2-13/\347\254\224\350\256\260.txt" => "\346\235\216\345\255\220\344\272\221/2-13/\347\254\224\350\256\260.txt" (100%) create mode 100644 "\346\235\216\345\255\220\344\272\221/2-15 \345\205\250\345\261\200\345\222\214\346\250\241\345\235\227/jie.js" create mode 100644 "\346\235\216\345\255\220\344\272\221/2-15 \345\205\250\345\261\200\345\222\214\346\250\241\345\235\227/zy.js" diff --git "a/2-13/\347\254\224\350\256\260.txt" "b/\346\235\216\345\255\220\344\272\221/2-13/\347\254\224\350\256\260.txt" similarity index 100% rename from "2-13/\347\254\224\350\256\260.txt" rename to "\346\235\216\345\255\220\344\272\221/2-13/\347\254\224\350\256\260.txt" diff --git "a/\346\235\216\345\255\220\344\272\221/2-15 \345\205\250\345\261\200\345\222\214\346\250\241\345\235\227/jie.js" "b/\346\235\216\345\255\220\344\272\221/2-15 \345\205\250\345\261\200\345\222\214\346\250\241\345\235\227/jie.js" new file mode 100644 index 0000000..bf2b645 --- /dev/null +++ "b/\346\235\216\345\255\220\344\272\221/2-15 \345\205\250\345\261\200\345\222\214\346\250\241\345\235\227/jie.js" @@ -0,0 +1,5 @@ +let obj=require('./zy') +console.log(obj.jia(3,1)) +console.log(obj.jian(6,1)) +console.log(obj.cheng(2,1)) +console.log(obj.chu(2,1)) \ No newline at end of file diff --git "a/\346\235\216\345\255\220\344\272\221/2-15 \345\205\250\345\261\200\345\222\214\346\250\241\345\235\227/zy.js" "b/\346\235\216\345\255\220\344\272\221/2-15 \345\205\250\345\261\200\345\222\214\346\250\241\345\235\227/zy.js" new file mode 100644 index 0000000..e796b7a --- /dev/null +++ "b/\346\235\216\345\255\220\344\272\221/2-15 \345\205\250\345\261\200\345\222\214\346\250\241\345\235\227/zy.js" @@ -0,0 +1,43 @@ +// ### 作业:写个加减乘除的模块(尽量少写暴露,要考虑复用性),供外部使用. 作业每个分支要建一个目录(自己名字) +let jieguo; +let obj={ + jia:function(a,b){ + if(Number(a) && Number(b)){ + jieguo=Number(a)+Number(b) + }else{ + jieguo="输入的必须为数字" + } + + return jieguo; + }, + jian:function(a,b){ + if(Number(a) && Number(b)){ + jieguo=Number(a)-Number(b) + }else{ + jieguo="输入的必须为数字" + } + + return jieguo; + }, + cheng:function(a,b){ + if(Number(a) && Number(b)){ + jieguo=Number(a)*Number(b) + }else{ + jieguo="输入的必须为数字" + } + + return jieguo; + }, + chu:function(a,b){ + if(Number(a) && Number(b)){ + jieguo=Number(a)/Number(b) + }else{ + jieguo="输入的必须为数字" + } + + return jieguo; + }, + + +} +module.exports=obj \ No newline at end of file -- Gitee