KuangChe

KuangChe

JavaScript忍之道2::百謎決戰-iT邦幫忙XJSDC

console.log("jsdc2013".replace("2013","$`"));

$` (backtick) inserts the text to the left of the regex match $’ (single quote) inserts the text to the right of the regex match $$ inserts a single dollar sign