摘要: ##正则的学习 ###创建正则的方式: 采用构造函数: let reg = new RegExp; console.log(reg);// /(?:)/ console.log(typeof reg);// object 字面量方式创建: <script> let reg3 = /test/; // 阅读全文
posted @ 2021-07-09 08:49 前端小学生er 阅读(44) 评论(0) 推荐(0) 编辑