自定义组件 pageLifetimes 内,如何调用 methods 内方法?
//无效
this.***()
//无效
this.__proto__.***()
//在 lifetimes 方法中有效
//在 pageLifetimes的 show()方法中无效
this.***.bind(this)()
自定义组件 pageLifetimes 内,如何调用 methods 内方法?
//无效
this.***()
//无效
this.__proto__.***()
//在 lifetimes 方法中有效
//在 pageLifetimes的 show()方法中无效
this.***.bind(this)()
1 回答1.1k 阅读✓ 已解决
4 回答1k 阅读
1 回答756 阅读✓ 已解决
1 回答742 阅读✓ 已解决
2 回答891 阅读
2 回答977 阅读
2 回答647 阅读
this.*.bind(this)()
这个方法有效