h5使用开放标签跳转小程序点击按钮跳转页面405
代码如下:
<wx-open-launch-weapp
id="launch-btn"
username="gh_591952ddxxxx"
path="pages/mine/mine.html"
>
<style>.btn { padding: 12px }style>
<button class="btn">打开小程序button>
wx-open-launch-weapp>
<script>
var btn = document.getElementById('launch-btn');
btn.addEventListener('launch', function (e) {
console.log('success');
});
btn.addEventListener('error', function (e) {
console.log('fail', e.detail);
});
script>
已解决,写了一篇文章请移步至https://developers.weixin.qq.com/community/develop/article/doc/00002a05760be03915caee70e51413