filter方法去重:
1, r = arr.filter(function (element, index, self) {
return self.indexOf(element) === index; 8 });
2,:visible.sync='show'简写为:visible='show' @update:visible="val => show = val"
filter方法去重:
1, r = arr.filter(function (element, index, self) {
return self.indexOf(element) === index; 8 });
2,:visible.sync='show'简写为:visible='show' @update:visible="val => show = val"
转载于:https://juejin.im/post/5cd59f636fb9a0322564db5c