export let A=123;
export function test(){
console.log('test');
}
export class Hello(){
test(){
console.log('class');
}
}
import (A,test,Hello) from './class/lesson' or import * as lesson from ''./class/lesson'
export 导出
import 导入
or other Method
let A=123;
function test(){
console.log('test');
}
class Hello(){
test(){
console.log('class');
}
}
export default{
A,
test,
Hello
}