问题描述
我正在使用Primefaces /root/Desktop/mal/ex1/
和inputMask
keyFilter
如何删除“ _”和“-”等特殊字符也为“
解决方法
记录不充分,但是p:keyFilter
期望JavaScript regular expression,因为所有examples in the documentation都以/
开头。因此,您需要使用/[0-9]/
而不是[0-9]
。
我正在使用Primefaces /root/Desktop/mal/ex1/
和inputMask
keyFilter
如何删除“ _”和“-”等特殊字符也为“
记录不充分,但是p:keyFilter
期望JavaScript regular expression,因为所有examples in the documentation都以/
开头。因此,您需要使用/[0-9]/
而不是[0-9]
。