当前位置:网站首页>小程序报错 :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
边栏推荐
- ONEFLOW learning notes: from functor to opexprinter
- The crawler returns null when parsing with XPath. The reason why the crawler cannot get the corresponding element and the solution
- Research purpose, construction goal, construction significance, technological innovation, technological effect
- 基于点云凸包的凹包获取方法
- PLC point table (register address and point table definition) cracking detection scheme -- convenient for industrial Internet data acquisition
- Error: cannot find or load main class
- 深度学习框架中的自动微分及高阶导数
- LeetCode_ DFS_ Medium_ 1254. Count the number of closed islands
- 汇编语言与逆向工程 栈溢出漏洞逆向分析实验报告
- LLVM之父Chris Lattner:编译器的黄金时代
猜你喜欢

2021 Li Hongyi's adaptive learning rate of machine learning

LeetCode_DFS_中等_1254. 统计封闭岛屿的数目

Failed to download esp32 program, prompting timeout

MySQL小練習(僅適合初學者,非初學者勿進)

Star Trek强势来袭 开启元宇宙虚拟与现实的梦幻联动

Non duplicate data values of two MySQL query tables

汇编语言与逆向工程 栈溢出漏洞逆向分析实验报告

Resource packaging dependency tree

Common errors of VMware building es8

What is augmented reality technology? Where can it be used?
随机推荐
Error: cannot find or load main class
搜索树判断 (25 分)
Restore binary tree (25 points)
Whether the same binary search tree (25 points)
Multi view depth estimation by fusing single view depth probability with multi view geometry
About CIN, scanf and getline, getchar, CIN Mixed use of getline
Flink reads MySQL and PgSQL at the same time, and the program will get stuck without logs
Failed to download esp32 program, prompting timeout
微信:获取单个标签所有人
Star Trek's strong attack opens the dream linkage between metacosmic virtual reality
MySQL小练习(仅适合初学者,非初学者勿进)
The most concerned occupations after 00: civil servants ranked second. What was the first?
请提前布局 Star Trek突破链游全新玩法,市场热度持续高涨
共享办公室,提升入驻体验
Initial experience of talent plan learning camp: communication + adhering to the only way to learn open source collaborative courses
Mini - exercice MySQL (seulement pour les débutants, pas pour les non - débutants)
Experimental report on analysis of overflow vulnerability of assembly language and reverse engineering stack
L2-3 浪漫侧影 (25 分)
还原二叉树 (25 分)
Go语言自学系列 | golang结构体的初始化