Skip to content

执行JavaScript语句时用正则表达式示例

Naibo Wang edited this page Oct 30, 2023 · 3 revisions

如果要执行的JavaScript的语句中有正则表达式,则示例为:

return arguments[0].innerText.replace(/s\n\d+/g, '>');
Clone this wiki locally