diff --git a/hh.js b/hh.js new file mode 100644 index 0000000000000000000000000000000000000000..1b2a47474f33aed98eb70a64a74596a06e1782fb --- /dev/null +++ b/hh.js @@ -0,0 +1 @@ +console.log("你好~"); \ No newline at end of file diff --git "a/\345\256\230\346\245\240/node\350\256\241\347\256\227\346\234\272\344\275\234\344\270\232/module.js" "b/\345\256\230\346\245\240/node\350\256\241\347\256\227\346\234\272\344\275\234\344\270\232/module.js" new file mode 100644 index 0000000000000000000000000000000000000000..6c1a12dcb3df5bb7f8709079a5ab1e5d9b80462e --- /dev/null +++ "b/\345\256\230\346\245\240/node\350\256\241\347\256\227\346\234\272\344\275\234\344\270\232/module.js" @@ -0,0 +1,31 @@ +let obj = { + 'jia':function(num1,num2) { + return num1+num2; + // console.log(num1+num2); + }, + 'jian':function(num1,num2) { + return num1-num2; + // console.log(num1-num2); + }, + 'chen':function(num1,num2) { + return num1*num2; + // console.log(num1*num2); + }, + 'chu':function(num1,num2) { + return num1/num2; + // console.log(num1/num2); + } + +}; +// let z ={ +// 'zong':function(num1,num2) { +// this.chen(num1,num2); +// this.chu(num1,num2); +// this.jia(num1,num2); +// this.jian(num1,num2); +// this.zong(num1,num2); +// } +// } +module.exports = obj; + +// export default obj; \ No newline at end of file diff --git "a/\345\256\230\346\245\240/objgo.js" "b/\345\256\230\346\245\240/objgo.js" new file mode 100644 index 0000000000000000000000000000000000000000..396d9bd21e775a2c51e6ce597304ed563931ba7d --- /dev/null +++ "b/\345\256\230\346\245\240/objgo.js" @@ -0,0 +1,6 @@ +let aa = require('./node计算机作业/module.js') + +console.log(aa.jia(2,10)); +console.log(aa.jian(3,11)); +console.log(aa.chen(3,23)); +console.log(aa.chu(3,3));