正则对象简写无效吗?

发布于 7 年前作者 changyang12000 次浏览最后编辑 7 年前来自 ask

1 回复
xiulanlai
xiulanlai1 楼5 年前

字面量形式的正则不支持动态化,如果需要动态化,就要使用构造函数的方式