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 5b741126c86c0ebe232a66dcf480bdf7c14f2f02..0000000000000000000000000000000000000000 --- "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\257\225\350\210\222\347\220\252/node\346\250\241\345\235\227/module.js" "b/\346\257\225\350\210\222\347\220\252/node\346\250\241\345\235\227/module.js" new file mode 100644 index 0000000000000000000000000000000000000000..846403e88c5d6224fee86a61fca6e9f41e1e8998 --- /dev/null +++ "b/\346\257\225\350\210\222\347\220\252/node\346\250\241\345\235\227/module.js" @@ -0,0 +1,22 @@ +let obj={ + + add:function(num1,num2){ + return num1+num2; + }, + jian:function(num1,num2){ + return num1-num2; + }, + cheng:function(num1,num2){ + return num1*num2; + }, + chu:function(num1,num2){ + if(num1==0||num2==0){ + return"除数或者被除数不能为零"; + }else{ + return num2/num1; + } + } +} +module.exports = obj; + + diff --git "a/\346\257\225\350\210\222\347\220\252/node\346\250\241\345\235\227/use.js" "b/\346\257\225\350\210\222\347\220\252/node\346\250\241\345\235\227/use.js" new file mode 100644 index 0000000000000000000000000000000000000000..76d50e244e6292b89713929ef0885664559b6871 --- /dev/null +++ "b/\346\257\225\350\210\222\347\220\252/node\346\250\241\345\235\227/use.js" @@ -0,0 +1,5 @@ +let rs=require("./module.js"); +console.log(rs.add(1,3)); +console.log(rs.jian(3,1)); +console.log(rs.cheng(1,3)); +console.log(rs.chu(3,0)); \ No newline at end of file