當正規表示式中要使用es6的模板字串時,不能用reg=/^$/這種形式, ... num (str) { return str.match(new RegExp(`\\S*${str.replace(/[^0-9]/ig, ...
確定! 回上一頁