要注意: 1.小程序必须关注公众号。 2.公众号也的关联小程序。 3.小程序和关注必须是同主体或者关联主体。 4.基础库2.7.3版本以上。 5.设置场景值,(在对应的场景值下才会显示出来)。
显示出来的效果如图:
<view style="width:100%;margin-top: 60px;"><official-account bindload='load' binderror='loErro'></official-account></view>loErro(res) {console.log(res)},load(res) {console.log(res, '加载')},