JavaScript 字符串移除括号函数
此函数用于移除字符串中的括号字符,不会造成任何安全性问题,仅用于字符串操作。
function render (input) {
const stripBracketsRe = /[()]/g
input = input.replace(stripBracketsRe, '')
return input
}
AI 优化版
原文地址:https://www.cveoy.top/t/topic/mZXN 著作权归作者所有。请勿转载和采集!