diff --git "a/\345\276\220\350\257\227\346\201\222/\346\250\241\345\235\227\344\275\234\344\270\232/zuoye.js" "b/\345\276\220\350\257\227\346\201\222/\346\250\241\345\235\227\344\275\234\344\270\232/zuoye.js" new file mode 100644 index 0000000000000000000000000000000000000000..21a28d722a5f95e77bd78f07bb1a12b7ae454116 --- /dev/null +++ "b/\345\276\220\350\257\227\346\201\222/\346\250\241\345\235\227\344\275\234\344\270\232/zuoye.js" @@ -0,0 +1,21 @@ + + +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){ + + return a/b + } +} +module.exports=obj; \ No newline at end of file diff --git "a/\345\276\220\350\257\227\346\201\222/\346\250\241\345\235\227\344\275\234\344\270\232/zuoye2.js" "b/\345\276\220\350\257\227\346\201\222/\346\250\241\345\235\227\344\275\234\344\270\232/zuoye2.js" new file mode 100644 index 0000000000000000000000000000000000000000..ca40c9f3c995a312eeaf2e296ec033b4b48663c3 --- /dev/null +++ "b/\345\276\220\350\257\227\346\201\222/\346\250\241\345\235\227\344\275\234\344\270\232/zuoye2.js" @@ -0,0 +1,6 @@ +let jisuan = require('./zuoye'); + +console.log(jisuan.jia(1,2)); +console.log(jisuan.jian(1,2)); +console.log(jisuan.cheng(1,2)); +console.log(jisuan.chu(1,2)); \ No newline at end of file