正则中 比如 var reg = "/^[0-9]$/" 会报 reg.test is not a function
如果 var reg = /^[0-9]$/ 就不会有错 因为 这才是正则 正确的表达式
相关文章
- maven编译报错File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
- Gradle报错:KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar in the classpath
- Spring JPA报错:Not supported for DML operations
- Angular 5升级RxJS到5.5.3报错:EmptyError: no elements in sequence
- 升级到Ionic 5报错Error: Angular JIT compilation failed: '@angular/compiler' not loaded!
- requirejs加载bootstrap报错处理:Bootstrap dropdown require Popper.js (https://popper.js.org)
- 处理Angular报错:ERROR in Metadata version mismatch for module
- mybatis报错:A query was run and no Result Maps were found for
- Spring报错:Could not find acceptable representation 解决
- 解决tabix建索引报错[E::hts_idx_push] Unsorted positions on sequence #