//util.js
function test() {
console.log("嗷呜:", getApp().globalData.username)
}
export {
test
}
//index.js
import {
test
} from '../../utils/util.js'
onLoad(){
test()
}
//util.js
function test() {
console.log("嗷呜:", getApp().globalData.username)
}
export {
test
}
//index.js
import {
test
} from '../../utils/util.js'
onLoad(){
test()
}