CommonJs写法规范 moudel.export = {}//导出 let util = require('./util.js') ES6 export var a = 10 export var b = 10 export var c = 10 export default {} import {a,b,c} from './util.js' import util from './util.js'
CommonJs写法规范 moudel.export = {}//导出 let util = require('./util.js') ES6 export var a = 10 export var b = 10 export var c = 10 export default {} import {a,b,c} from './util.js' import util from './util.js'