调用页面内方法如何弄呀?
app.js
App({
check(that,func){
that.func()
}
})
Page.js
var app = getApp()
Page({
test(){
console.log(‘test’)
}
onLoad(){
var that = this
app.check(that,‘test’)
}
})
app.js如何写如何调用test呀,大神指教