Javascript replace replacement problem

the code is as follows:

var str="$$$8372XYI:0.7;0.80.4$$$";
var ff=str.replace("$$$"+"8372XYI:0.7;0.80.4"+"$$$","$$$");

ff: "$$"   "$$$" ?
Nov.25,2021

Lou Zhu, replace method, you can take a look at the reference link

.
  http://www.w3school.com.cn/js.

Menu