Below I will share with you an example of vue refresh and tab switching, which has a good reference value and I hope it will be helpful to everyone.
First write a subcomponent to hold the refreshed content, named pull (you can see it at the end of the example.)
Then reference the page to be refreshed
价格 //点击价格会排序
{{item.goods_name}}
¥{{item.goods_price}}
The following is the subcomponent named pull.
下拉可以刷新
释放立即刷新
正在刷新
暂无内容
正在加载...
An example of tab
一级合伙人总数{{count}}人
![]()
{{item.vname}}
{{item.identity}}
二级合伙人总数{{count}}人
{{type(index)}}人数
{{item}}
暂无下线
The above is what I compiled for everyone. I hope it will be helpful to everyone in the future. help.
Related articles:
How to dynamically bind the attributes of form elements in vue
Use Vue.set dynamically new in Vue Method of adding object attributes
There is no configuration method under dev-server.js in vue2.0
The above is the detailed content of Implement refresh and tab switching in vue. For more information, please follow other related articles on the PHP Chinese website!
How to open vsd file
What are the ways to clear floats?
The difference between rom and ram
What brand is Nubia mobile phone?
How much is Snapdragon 8gen2 equivalent to Apple?
Why is there no signal on the monitor after turning on the computer?
Which is more worth learning, c language or python?
Introduction to common commands of postgresql