使用常數的 const rule = new RegExp('') 可以幫我們增加效能。 Regular expression可以搭配String的 match(), matchAll(), replace(), replaceAll(), search(), split()
確定! 回上一頁