<button class="phone_btn" open-type="getPhoneNumber" @getphonenumber="getPhoneNum">获取手机号</button>
methods: {
getPhoneNum (res) {
console.log(res, '获取手机号码')
}
}
<button class="phone_btn" open-type="getPhoneNumber" @getphonenumber="getPhoneNum">获取手机号</button>
methods: {
getPhoneNum (res) {
console.log(res, '获取手机号码')
}
}
2 个回复
1***@qq.com (作者)
开发者工具内报错
1***@qq.com
如何解决的