Home >Web Front-end >JS Tutorial >vue2.0 gets JS Bin value
This time I will bring you vue2.0 to get JS Bin value, what are the precautions for vue2.0 to get JS Bin value, the following is a practical case, let’s take a look one time.
varvm =newVue({ el:'#app', data:{ type:'', items:[ {type:1}, {type:2} ] }, methods:{ getType:function(type){ this.type = type } } })
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related matters on the php Chinese website article!
Recommended reading:
Summary of qps statistical methods
##JS implementation of drop-down menu login registration pop-up window
Summary of methods to improve Node.js performance
The above is the detailed content of vue2.0 gets JS Bin value. For more information, please follow other related articles on the PHP Chinese website!