专题文章
时长:00:00更新时间:2020-11-27 22:32:51
本文实例为大家分享了vue实现单选和多选功能的具体代码,供大家参考,具体内容如下:<。= 0) { self.checkValue = self.items[0].value;self.checkId = 'food-' + self.items[0].id } }.setCheckValue: function (item) { this.checkId = 'food-' + item.id;} .showCheck: function () { console.log(this.checkId) } }.mounted: function () { this.initData();} })<;/script>;<;/body>;<;/html>;
查看详情