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);
}
}
});
修改的评论也不能少于六个字哦!
0
分享