Skip to main content
View All
Search
Shelves
Books
Sign up
Log in
Info
Content
JS正则校验
Page Revisions
Revision #56
JS正则校验
let regex = /hello/;
let string = "hello world";
console.log(regex.test(string)); // 输出:true
Back to top