Copy code code as follows: Function Changedouhao (STR) { str = str.replace (/,/ig, ','); Return Str; }