此前,如果想要替換所有的string occurrences,則需要使用String.prototype.replace 和全局regexp 的組合。現在, conststring="it-is-just-a-test"; ...
確定! 回上一頁