关于setData赋值给data,wxml绑定的值没有发生改变?

小程序 文章 2020-08-31 16:01 556 0 全屏看文

AI助手支持GPT4.0

关于setData赋值给data,wxml绑定的值没有发生改变?Regarding the assignment of setData to data, the value bound to wxml has not changed?

关于setData赋值给data,wxml绑定的值没有发生改变?

向后端发送请求,通过setData赋值,console.log() data中的值发生改变,appData中的数据发生改变,wxml绑定的值无法改变。手动更改wxml值页面还是没有发生改变。

Send a request to the back end and assign a value through SetData, console.log () the value in data changes, the data in appdata changes, and the value of wxml binding cannot be changed. Manually changing the wxml value page has not changed.

回答:

Ac🚬zy:

wxml绑定的值是不是拼错了

微喵网络:

弄一个 [ 能复现问题的简单的 ] 代码片段

https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

夕阳西下?:

来个能复现问题的代码片段比较好

-EOF-

AI助手支持GPT4.0