Vue-级联下拉框

Vue-级联下拉框_第1张图片

 

                                    
                                                所属栏目:
                                                
                                                    
                                                
                                            
                                            
                                                所属子栏目:
                                                
                                                    
                                                
                                            
function getVue(r, s) {

          v = new Vue({
              el: "#app",
              data: {
                  //数据赋值操作
                  result: r,
                  //新闻来源
                  newsSource: r.resultObj[0],
                  type: r.resultObj[1],
                  navigate:r.resultObj[2],
                  a:"test"
                  //v-model绑定
              },
              methods: {
                  getChild: function () {
                      this.$data.a = $("#Navigate2").val();
                  },
              }
          });

      }

 

你可能感兴趣的:(Vue练习)