黑马程序员北京顺义校区133期web前端面授
nst result = add(1, 2)console.log(result);// moduleA.jsexport function add(a, b) {
return a + b}export function log() {
return true;}// output.js, tree shaking去除了log()函数function add(a, b) {
return a + b;}const result = add(1, 2);console.log(result);