第一次开发小程序,这个原生能力怎么调用
<button class="button-avatar" open-type="chooseAvatar" bindchooseimage="onChooseAvatar"> 获取 </button>
onChooseAvatar(e) {
console.log(e, 'e')
},
报错
[渲染层错误] [Component] <button>: chooseAvatar:fail api scope is not declared in the privacy agreement(env: macOS,mp,1.06.2311142; lib: 3.2.0)
想要一个demo
这种问题拿报错信息搜一下就出来了。
https://developers.weixin.qq.com/community/develop/article/do...