微信云开发跨页面传值问题?

小程序 文章 2021-02-05 14:41 322 0 全屏看文

AI助手支持GPT4.0

微信云开发跨页面传值问题?WeChat cloud development cross-page value transfer problem?

微信云开发跨页面传值问题?

A页面有一个<input> 和<botton>,现已实现点击A页面的botton跳转到B页面!

现在的需求是:当点击A页面的botton,跳转B页面的同时将A页面inpu输入的值直接显示在B页面上。

我在网上找了很多资料,有的说定义全局变量,有的说url传参,我都试过,始终在B页面实现不了显示A页面input输入的内容;

*最好能附上每个步骤的代码,跪谢!

Page a has a < input > and < botton >, and now it is realized to click the botton of page a to jump to page B! Now the demand is: when you click botton on page A and jump to page B, the input value of page a will be directly displayed on page B. I found a lot of information on the Internet, some said to define global variables, some said URL parameters, I have tried, always in the B page can not display the content of a page input; * it is best to attach the code of each step, thank you!

回答:

this:

你先搞懂url传参这个概念,不然你查再多资料也没用

Brother斌🎈:

怎么简单的东西,你确定你查过而且你都试过而且都不行???

Arthur:是的,实现不了
brave:

还是好好去学一下小程序基础吧,别一上来就说查了好多资料都不行,直接要代码

-EOF-

AI助手支持GPT4.0