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证书这一个选项选上
    uni-app中使用web-view展示h5页面及相关问题
  • 使用这个标签需要在小程序管理后台设置业务域名,登录后台后找到设置-开发设置-业务域名,然后把你需要加载的域名添加进去
    uni-app中使用web-view展示h5页面及相关问题

使用外部浏览器打开H5

见: https://www.jianshu.com/p/1733a384dace

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-07-10
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
相关资源
相似解决方案