有新数据添加到数组里了,列表如何刷新展示?

小程序 文章 2020-08-12 12:21 565 0 全屏看文

AI助手支持GPT4.0

有新数据添加到数组里了,列表如何刷新展示?New data is added to the array, how to refresh the list?

有新数据添加到数组里了,列表如何刷新展示?

现在就是想点击报名后不需要重新载入就可以刷新添加的列表,请问这个怎么做,我想设置个延时重新调用onLoad()但是不被允许,是不是哪里写错了,求指导,跳转的换也可以实现,但是还要销毁一个页面比较慢。

I want to set a delay to call onload() again, but it's not allowed. If there is something wrong with my writing, I can ask for guidance and jump. However, it is slow to destroy a page.

回答:

王志鹏:

this 指向问题 而且想刷新列表 为什么不用 setData呢?

卢霄霄:

setTimeout(()=>this.onLoad())

青寒:

双向绑定?

-EOF-

AI助手支持GPT4.0