浏览器要求:
- Safari 10.1.
- Chrome 61.
- Firefox 60.
- Edge 16.
使用方法:
index.html
1 | <!DOCTYPE html> |
index.js
1 | import module1 from '/module1.js' |
module1.js
1 | const module1 = { |
module2.js
1 | const module2 = { |
得到

浏览器要求:
使用方法:
index.html
1 | <!DOCTYPE html> |
index.js
1 | import module1 from '/module1.js' |
module1.js
1 | const module1 = { |
module2.js
1 | const module2 = { |
得到
