h5跳转小程序wx-open-launch-weapp跳转页面显示405?
h5使用开放标签跳转小程序点击按钮跳转页面405
代码如下:
<wx-open-launch-weapp
id="launch-btn"
username="gh_591952ddxxxx"
path="pages/mine/mine.html"
>
<style>.btn { padding: 12px }style>
<span class="hljs-tag"><<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"btn"</span>></span>打开小程序<span class="hljs-tag"><!--<span class="hljs-name"-->button</span>>
<span class="hljs-tag"><!--<span class="hljs-name"-->wx-open-launch-weapp</span>>
<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>