2013-03-21 聚會手記

Published: Mar 21, 2013 by community

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

Share