javascript - How to check digit from string - Stack Overflow

javascript - How to check digit from string - Stack Overflow

瀏覽:1205
日期:2025-04-27
I have getting string. I want to check string have any digit. The string ... function hasDigit(yourString) { return yourString.match(/\d/) !== null; }....看更多