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