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

小程序 文章 2021-02-05 14:41 350 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
所有的体验版小程序报错 regeneratorRuntime is not defined
wx.getUserProfile获取敏感数据?
小程序改名,申请进去怎么成了公众号改名?
新开发的公众号配置服务器地址,压根配置不了,总返回token验证失败,怎么用不了?
createMediaContainer(MediaTrack track)音频视频合成问题?
随便看看
微信公众号免300认证教程 5068
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 4381
小程序广告组件通过审核,但是小程序内没有显示广告? 4355
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8378
问题? 7592
如何快速搭建抽奖助手小程序(无需代码知识) 5168
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6231
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5742
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5309
如何解决渲染层网络错误Failed to load media? 16661