分别暴露
export let school = '武汉大学'
export let name = '彭于晏'
统一暴露
let school = '武汉大学'
let name = '彭于晏'
export { school, name }
引入
import { school, name } from './index.js'
分别暴露
export let school = '武汉大学'
export let name = '彭于晏'
统一暴露
let school = '武汉大学'
let name = '彭于晏'
export { school, name }
引入
import { school, name } from './index.js'