摘要: export let a = 1 export let c = 2 export let d = 3 export default { 'name': 'makuo', 'age':18 } #浏览器导入 <script type="module"> import m3 from './a.js' 阅读全文
posted @ 2022-05-23 06:14 mk-备忘 阅读(55) 评论(0) 推荐(0)
摘要: // a.js a=1 b=2 // 暴露单个对象或数据 // module.exports=a // 暴露对象 module.exports={ a, b } // b.js a=require('./a.js') console.log(a) 阅读全文
posted @ 2022-05-23 06:03 mk-备忘 阅读(54) 评论(0) 推荐(0)