data: { info: "ABC" },
methods: {
reverseInfo: function () {
this.info = this.info.split("").reverse().join("")
}
}
小例子 -- vue如何使用过滤器实现字符串反转
最新推荐文章于 2024-08-13 22:07:58 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
data: { info: "ABC" },
methods: {
reverseInfo: function () {
this.info = this.info.split("").reverse().join("")
}
}