VUE——filters过滤器中不能使用this问题

1,031 阅读1分钟

问题:VUE——filters过滤器中不能使用this问题

解决: 1、声明一个全局变量 2、在页面刷新时给that赋值this 3、最后that就可以当做this在filters中使用

1、

image.png

3、

image.png

4、

image.png