什么叫做父Behavior?
//page index
Page({
behaviors:[PageBehavior]
});
//PageBehavior
Behavior({
data:{
tval:'Page'
},
behaviors:[BaseBehavior]
});
//BaseBehavior
Behavior({
data:{
tval:'Base'
}
});
请问`PageBehavior`和`BaseBehavior`谁是父Behavior?
1 回复
你好,可以先参考“Behavior”相关文档:
https://developers.weixin.qq.com/miniprogram/dev/reference/api/Behavior.html