将字符串中英文括号替换成中文括号 let reg1 = /[\(]/g; let reg2 = /[\)]/g; let str = '(中国)'; str = str.replace(reg1, "(").replace(reg2, ")"); console.log(str); // (中国)