当前位置:网站首页>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
如何让背景色在任何设备宽高都能填充整个屏幕
Daily practice of PMP | Do not get lost in the exam-8.2 (including agility + multiple choice)
多线程可见
Postman will return to results generated CSV file to the local interface
The ORB - SLAM2 extracting feature points
VR全景市场拓展技巧之“拓客宝典”
加速FinOps实践,为企业降本增效
9月考,如何选择靠谱正规的培训机构?
一文搞懂什么是@Component和@Bean注解以及如何使用
Roson的Qt之旅#106 QML在图片上方放置按钮并实现点击按钮切换图片
Haisi project summary
requests库
薛定谔的对象属性判断
贷中存量客户的价值挖掘与分类实现,试试这一重要的场景模型
static数据成员
差分(前缀和的逆运算)
RHCSA第四天
华为设备配置BFD与接口联动(触发与BFD联动的接口物理状态变为Down)
pyspark df secondary sorting









