Luckily, strings in JavaScript have this handy replace method built in, so you use it. spec.replace(/#(\w+)/g, (match, name) => { let color ...
確定! 回上一頁