当前位置:网站首页>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" }); },
边栏推荐
猜你喜欢
随机推荐
学习Glide 常用场景的写法 +
qt学习之旅--MinGW32编译opencv3.0.0
训练正常&异常的GAN损失函数loss变化应该是怎么样的
mongodb的shell脚本
STL - string
MySQL - 触发器
深入理解IO流(第一篇)
pyspark df secondary sorting
924. 尽量减少恶意软件的传播 前缀和
postman将接口返回结果生成csv文件到本地
测试用例设计方法之因果图详解
关于利用canvas画带箭头的直线旋转
数仓埋点体系与归因实践
c现代方法16章基础
千万级别的表分页查询非常慢,怎么办?
Oracle Rac Cluster File Directory Migration
差分(前缀和的逆运算)
qt学习之旅--MinGW编译FFmpeg(32bit)
智能客服,还有多少AI泡沫?
tmp








