收藏
回答

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>
		    <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>
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签