var str = custom-FEB84A el-popup-parent--hidden帮我用正则匹配到custom-FEB84是否有
可以使用以下正则表达式匹配到 "custom-FEB84":
var str = 'custom-FEB84A el-popup-parent--hidden';
var regex = /custom-FEB84/;
var result = regex.test(str);
console.log(result); // true
原文地址: http://www.cveoy.top/t/topic/iDk2 著作权归作者所有。请勿转载和采集!