赞
踩
<view>
<b bind:toSumbit="sumbit"></b>
</view>
Page({ data: { }, sumbit(e) { console.log(e.detail.sumbitInfo) }, onLoad() { }, onReady() {}, onShow() {}, onHide() {}, onUnload() {}, onPullDownRefresh() { }, onReachBottom() { }, onShareAppMessage() { } })
b组件
Component({
properties: {},
data: {
sumbitInfo: {},
},
methods: {
sumbit() {
this.triggerEvent('toSumbit', {
sumbitInfo: this.data.sumbitInfo
})
}
}
})
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。