当前位置:网站首页>wechat_ Solve the problem of page Jump and parameter transfer by navigator in wechat applet

wechat_ Solve the problem of page Jump and parameter transfer by navigator in wechat applet

2022-06-26 17:47:00 QiuRenBB

1、 The effect you want to achieve :
Click on the corresponding popular search keyword
 Insert picture description here
Jump to the page you want to jump to , And pass the corresponding popular search keywords
 Insert picture description here

2、 The page that passes the parameters :
Binding events to elements to be passed
 Insert picture description here
stay methods The method , Receive parameter . And then use ES6 String concatenation " `` ", Remember to splice strings , Otherwise, an error will be reported , Then the parameters to be passed are spliced behind the skipped path .
 Insert picture description here
3、 The page after jump :
stay onload() Receive the parameters from the transfer parameters page , Then take .
 Insert picture description here
4、 Last :
Thank you for your support and understanding , As a newcomer, I am also constantly trying to improve . After that, I will continue to create some better works .

原网站

版权声明
本文为[QiuRenBB]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206261736319131.html