lastZero:function (num) {
var reg = /0+$/;
return reg.test(num)
}
I wrote a rule, but I still think that the rule is just to determine whether the last number is 0
. what I want is some data returned in the background. If the end of these numbers is 0, I will make the colors of these 000s different, like
excuse me, how should this effect be achieved, whether it is in vue, is it possible to do it with a filter or other js code?
can you provide a sample code?