大家好,又见面了,我是你们的朋友全栈君。
String.prototype.matchAll = function(reg){ let matchArr=[]; let match; while (( match = reg.exec(this)) !== null) { matchArr.push(match); } return matchArr; };
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/163368.html原文链接:https://javaforall.cn