wx-open-launch-weapp在javascript不显示是怎么回事?
代码是按照官网文档写的,直接把官网文档代码粘贴进去也不显示
<wx-open-launch-weapp
id="launch-btn"
username="gh_xxxxxxxx"
path="pages/home/index.html?user=123&action=abc"
>
<template>
<style>.btn { padding: 12px }</style>
<button class="btn">打开小程序</button>
</template>
</wx-open-launch-weapp>
<wx-open-launch-weapp id="launch-btn" username="gh_*******" path="/pages/room/room.html">
<template>
<style>
.btn {
border: none;
background-color: transparent;
color: #333;
font-size: 14px;
display:block;
}
</style>
<button class="btn">
<div>打开小程序</div>
</button>
</template>
</wx-open-launch-weapp>
请问为什么这样写的在h5中标签不显示
可以看到的,html和工具不显示 真机显示 同时看看真机的微信版本是不是最新或者 见官网 7.0.12及以上。 系统版本要求为:iOS 10.3及以上、Android 5.0及以上。
请问解决了吗
我也遇到了同样的问题。html页面,加<template></template>就不显示了,不论真机、网页、PC微信网页都不显示
<script type="text/wxtag-template">
<style>
.btn {
width: 375px;
height: 50px;
font-size: 16px;
}
</style>
<button class="btn">打开小程序</button>
</script>
</wx-open-launch-weapp>
试下这个,我这边在真机上可以看到
请问解决了吗
<script type="text/wxtag-template">
<style>
.btn {
width: 375px;
height: 50px;
font-size: 16px;
}
</style>
<button class="btn">打开小程序</button>
</script>
</wx-open-launch-weapp>
试下这个,我这边在真机上可以看到
在开发者工具里调试看看
你贴下你的完整代码截图,光从这个看不出什么问题来。