<script> /* ? 0-1 {0,1} + 大于1个 {1,} * {0,} */ var str = "hje1"; var reg =/\d+/ console.log(reg.test(str)) </script>