javascript - About vue receiving sequential dynamic rendering sent from the background
怪我咯
怪我咯 2017-05-19 10:46:23
0
1
470

I encountered a problem when I was working on a project, that is, two values ​​were passed from the background, which was the order of the two p's. I needed to dynamically render HTML based on these two values, and if the order in the background changed, my page would also change. Follow the changes. (ps: The data in p is also dynamic.)
I hope the experts can tell me how to do it. I would be very grateful.

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
我想大声告诉你

Put the two values ​​into the array and use v-for rendering to ensure the order. Array is an ordered data structure.
Then every time you pull data, just update this array.
Remember that Vue operates on data rather than on the DOM.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!