参考博客:https://blog.csdn.net/u010653873/article/details/78947488
记得以后调方法不要直接用this调,至于原理,不是很懂
var that = this
that.test()
page{
test:function(){
conlose.log('this is a test')
}
}
参考博客:https://blog.csdn.net/u010653873/article/details/78947488
记得以后调方法不要直接用this调,至于原理,不是很懂
var that = this
that.test()
page{
test:function(){
conlose.log('this is a test')
}
}