a.js
let test = function() {
}
export default {
test
b.js
import { test } from 'a.js'
console.log(test) // undefined
import all from 'a.js'
console.log(all) // {test: f}
慕村225694
相关分类