Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

点击按钮新增一条数据的时候,要怎么刷新列表呢 #12

Open
xueC89 opened this issue Sep 24, 2017 · 6 comments
Open

点击按钮新增一条数据的时候,要怎么刷新列表呢 #12

xueC89 opened this issue Sep 24, 2017 · 6 comments

Comments

@xueC89
Copy link

xueC89 commented Sep 24, 2017

No description provided.

@fa-ge
Copy link
Owner

fa-ge commented Sep 24, 2017

能描述的详细一点吗?

@xueC89
Copy link
Author

xueC89 commented Sep 24, 2017

就是如果我有个回复的列表,添加了一条回复的数据,要怎么刷新这个列表显示最新的那条回复

@fa-ge
Copy link
Owner

fa-ge commented Sep 24, 2017

就直接append

@xueC89
Copy link
Author

xueC89 commented Sep 24, 2017

理解了,多谢解答

@xueC89
Copy link
Author

xueC89 commented Sep 24, 2017

@fa-ge 好像不行,因为提交的回复到后端,后端返回数据给我,这时候要怎么做刷新呢。如果没有刷新的方法,重新实例化一次就会出错的

@fa-ge
Copy link
Owner

fa-ge commented Sep 24, 2017

不要重新实例化啊。后端返回数据给你,你就append到列表中啊。或者有没有具体的代码,并附上说明

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants