当前位置:网站首页>Taro框架-微信小程序-内嵌h5页面
Taro框架-微信小程序-内嵌h5页面
2022-08-03 07:08:00 【阿雷前进中...】
- 创建
show-page
文件夹,创建index.vue
页面组件, 使用web-view
标签从url中取参数
import { getCurrentInstance } from ‘@tarojs/taro’<template> <web-view :src="srcValue"></web-view> </template> <script> import { getCurrentInstance } from '@tarojs/taro' export default { data() { return { srcValue: '' } }, created(){ this.srcValue = getCurrentInstance().router.params.value } } </script>
- 跳转h5页面中的点击事件
handleClick() { Taro.navigateTo({ url: "/pages/show-page/index?value=https://xxx.index.html" }); },
边栏推荐
猜你喜欢
随机推荐
伦敦银现货市场如何使用多条均线?
pyspark---low frequency feature processing
第六章:存储系统
【云原生--Kubernetes】Pod重启策略
力扣(LeetCode)214. 打家劫舍 II(2022.08.02)
Shell脚本之一键安装mysql
人脸检测和识别--face recognition包
面试介绍项目经验(转)
数据库表结构文档 生成工具screw的使用
《多线程案例》阻塞队列、定时器、线程池、饿汉与懒汉模式
“碳中和”愿景下,什么样的数据中心才是我们需要的?
差分(前缀和的逆运算)
被数据分析重塑的5个行业
boot - SSE
boot-SSE
postman将接口返回结果生成csv文件到本地
控制bean的加载
商业智能BI业务分析思维:供应链分析 – 如何控制牛鞭效应(二)
jvm 面试题
测试用例设计方法之因果图详解