html部分就不放了,直接放js部分,如下面代码所示。注意!!!animated前端的空格一定不能少。 this.$refs[i][0].setAttribute("class", " animated bounceInLeft")