Knockout JS Count only numbers in maxLength attribute

前端 未结 0 966
-上瘾入骨i
-上瘾入骨i 2020-12-18 10:21

Is there a way to manipulate maxLength attribute to count only numbers? I have seen this code MyObservable.replace(/[^0-9]/g, \'\').length that can only count n

相关标签:
回答
  • 消灭零回复
提交回复
热议问题