guoxiaohai

105 经验值

谢谢,解决了,是版本的问题,1.0的版本是支持$remove

var vm = new Vue({    
    el: "#app",
    data: {        
        title: "",
        price: "",
        areas: "",
        extendItem: [{name: "Test", value: "test"}],
        industry: "",
        detailed: "",
        isCommission: false,
        commission: "",
        desc: ""    
      },
    methods: {        
      addExtend: function () {            
        this.extendItem.push({name: "", value: ""});        
      },
      delExtend: function (item) {            
        this.extendItem.$remove(item);        
      }    
    }
});

86E.tmp.png