?? ? ??? ?? ??
this.array.filter(post => post.slug !== this.$route.params.slug)filter? ??? ??? ??? ? ????. ?? this.$route.params.slug 等于 def,它將只給出 id 為 1 和 3.
this.array.filter(post => post.slug !== this.$route.params.slug)
this.$route.params.slug
def
1
3