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!