当前位置:网站首页>小程序报错 :should have url attribute when using navigateTo, redirectTo or switchTab
小程序报错 :should have url attribute when using navigateTo, redirectTo or switchTab
2022-04-23 09:01:00 【一个博客】
should have url attribute when using navigateTo, redirectTo or switchTab
问题原因
个人理解:wxml中使用了navigator标签,js中用到了 wx.navigateTo做跳转。
解决方法:
1.把navigator标签修改成view标签。
2.或者去掉 wx.navigateTo做跳转。navigator标签使用url跳转
版权声明
本文为[一个博客]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_45784582/article/details/105546627
边栏推荐
- Technological innovation in government affairs in the construction of Digital Government
- 根据后序和中序遍历输出先序遍历 (25 分)
- 完全二叉搜索树 (30 分)
- Idea is configured to connect to the remote database mysql, or Navicat fails to connect to the remote database (solved)
- 求简单类型的矩阵和
- Basic usage of synchronized locks
- 在sqli-liabs学习SQL注入之旅(第十一关~第二十关)
- 1099 建立二叉搜索树 (30 分)
- Download and install bashdb
- BK3633 规格书
猜你喜欢
bashdb下载安装
搞不懂时间、时间戳、时区,快来看这篇
Consensus Token:web3. 0 super entrance of ecological flow
PCTP考试经验分享
Study notes of deep learning (8)
MySQL查询两张表属性值非重复的数据
资源打包关系依赖树
PLC point table (register address and point table definition) cracking detection scheme -- convenient for industrial Internet data acquisition
GUI编程简介 swing
PLC的点表(寄存器地址和点表定义)破解探测方案--方便工业互联网数据采集
随机推荐
Automatic differentiation and higher order derivative in deep learning framework
Restore binary tree (25 points)
2022-04-22 openebs cloud native storage
idea打包 jar文件
请提前布局 Star Trek突破链游全新玩法,市场热度持续高涨
Go language self-study series | golang structure pointer
Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
Technological innovation in government affairs in the construction of Digital Government
Taxable income
Go语言自学系列 | golang结构体的初始化
Common errors of VMware building es8
经典题目刷一刷
Test your machine learning pipeline
DJ music management software pioneer DJ rekordbox
Star Trek's strong attack opens the dream linkage between metacosmic virtual reality
计算神经网络推理时间的正确方法
Star Trek强势来袭 开启元宇宙虚拟与现实的梦幻联动
【58】最后一个单词的长度【LeetCode】
Initial experience of talent plan learning camp: communication + adhering to the only way to learn open source collaborative courses
Virtual online exhibition - Online VR exhibition hall realizes 24h immersive exhibition viewing