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/\350\224\241\347\221\234\347\216\262/12.txt" "b/\350\224\241\347\221\234\347\216\262/12.txt" new file mode 100644 index 0000000000000000000000000000000000000000..07307f0bb581c91a0fba18249a88f24e097b114d --- /dev/null +++ "b/\350\224\241\347\221\234\347\216\262/12.txt" @@ -0,0 +1 @@ +nih \ No newline at end of file diff --git "a/\350\224\241\347\221\234\347\216\262/\350\224\241\347\221\234\347\216\262 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/moel.js" "b/\350\224\241\347\221\234\347\216\262/\350\224\241\347\221\234\347\216\262 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/moel.js" new file mode 100644 index 0000000000000000000000000000000000000000..32810270c8dfcf85bf3f452fad11684248dcd219 --- /dev/null +++ "b/\350\224\241\347\221\234\347\216\262/\350\224\241\347\221\234\347\216\262 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/moel.js" @@ -0,0 +1,47 @@ +let jg; +let r=/^[0-9]+[0-9]*/; +let ojb={ + jia:function (a,b) { + if(!r.test(a)||!r.test(b)){ + jg=flase; + console.log("请输入正确数值") + }else{ + return jg=a+b; + + } + + } + ,jian:function (a,b) { + if(!r.test(a)||!r.test(b)){ + jg=false; + console.log("请输入正确数值"); + }else{ + return jg=a-b; + + } + + } + ,chen: function(a,b){ + if(!r.test(a)||!r.test(b)){ + jg=false; + console.log("请输入正确数值"); + }else{ + return jg=a*b; + + } + +} + ,chu:function (a,b) { + let rr=/^[1-9]+[0-9]*/; + if(!rr.test(a)||!rr.test(b)){ + jg=false; + console.log("请输入正确数值"); + }else{ + return jg=a/b; + + } + +} +} +module.exports=ojb; + diff --git "a/\350\224\241\347\221\234\347\216\262/\350\224\241\347\221\234\347\216\262 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/use2.js" "b/\350\224\241\347\221\234\347\216\262/\350\224\241\347\221\234\347\216\262 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/use2.js" new file mode 100644 index 0000000000000000000000000000000000000000..075d9c8ffeca1c779ac22545c1038a013c19f553 --- /dev/null +++ "b/\350\224\241\347\221\234\347\216\262/\350\224\241\347\221\234\347\216\262 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/use2.js" @@ -0,0 +1,5 @@ +let suan=require('./moel'); +console.log(suan.jia(1,2)); +console.log(suan.jian(3,1)); +console.log(suan.chen(1,2)); +console.log(suan.chu(15,3)); \ No newline at end of file