https://uniapp.dcloud.io/component/web-view?id=web-view )
<template>
<view class="container">
<web-view :src="weburl"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
weburl:'',
};
},
onLoad() {
this.weburl="https://demo/video/videoplay"
},
}
</script>
- 解决:将不校验合法域名、web-view(业务域名)、TLS版本及HTTPS证书这一个选项选上
- 使用
这个标签需要在小程序管理后台设置业务域名,登录后台后找到设置-开发设置-业务域名,然后把你需要加载的域名添加进去

使用外部浏览器打开H5
见: https://www.jianshu.com/p/1733a384dace