摘要: 自定义模块 a.js //导入 let test=require('./b.js') console.log(test.s) console.log(test.add1(3,2)) b.js let s=10 let add1=function add1(i,j){ return i+j } let 阅读全文
posted @ 2021-05-10 11:18 富坚老贼 阅读(31) 评论(0) 推荐(0) 编辑