Home  >  Article  >  Web Front-end  >  vue2.0 gets JS Bin value

vue2.0 gets JS Bin value

php中世界最好的语言
php中世界最好的语言Original
2018-04-19 13:39:431175browse

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.

Javascript

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn