javascript - How to check digit from string - Stack Overflow
經安全檢測,此網站為安全網站,請放心前往原始網址!
javascript - How to check digit from string - Stack Overflow
I have getting string. I want to check string have any digit. The string ... function
hasDigit(yourString) { return yourString.match(/\d/) !== null; }.