当前位置:网站首页>js删除字符串中的子串
js删除字符串中的子串
2022-07-02 14:01:00 【spring-java】
const removeString = (string, separator) => {
//我们分割字符串并使其不带分隔符
const separatedArray = string.split(separator);
//我们用空字符串将splittedArray加入
const separatedString = separatedArray.join("");
return separatedString;
}
const str = removeString('this-is-a-sting', '-');
console.log(str);
边栏推荐
- TCP server communication process (important)
- 分析超700万个研发需求发现,这8门编程语言才是行业最需要的!
- Just a coincidence? The mysterious technology of apple ios16 is even consistent with the products of Chinese enterprises five years ago!
- Interview summary of large factories
- PhD Debate-11 预告 | 回顾与展望神经网络的后门攻击与防御
- What if the win11 app store cannot load the page? Win11 store cannot load page
- 关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
- PCL least median square method fitting plane
- Privacy computing technology innovation and industry practice seminar: Learning
- Typescript array out of order output
猜你喜欢
Yyds dry inventory uses thread safe two-way linked list to realize simple LRU cache simulation
Xiaopeng P7 had an accident on rainy days, and the airbag did not pop up. Official response: the impact strength did not meet the ejection requirements
Seal Library - installation and introduction
DigiCert SSL证书支持中文域名申请吗?
What is normal distribution? What is the 28 law?
隐私计算技术创新及产业实践研讨会:学习
john爆破出現Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])
john爆破出现Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])
Summary | three coordinate systems in machine vision and their relationships
Lampe respiratoire PWM
随机推荐
System Verilog implements priority arbiter
unity Hub 登录框变得很窄 无法登录
Understand the key technology of AGV -- the difference between laser slam and visual slam
Unity使用UGUI设置一个简单多级水平方向下拉菜单(不需要代码)
618深度复盘:海尔智家的制胜方法论
LeetCode 6. Z 字形变换 (N字形变换)
PCL 点云镜像变换
618 reprise en profondeur: la méthode gagnante de la famille Haier Zhi
VMware安装win10镜像
R及RStudio下载安装教程(超详细)
七一献礼:易鲸捷 “百日会战”完美收官 贵阳银行数据库提前封板
john爆破出現Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])
Yyds dry goods inventory has not revealed the artifact? Valentine's Day is coming. Please send her a special gift~
Lampe respiratoire PWM
LeetCode 2. Add two numbers
Global and Chinese markets of stainless steel surgical suture 2022-2028: Research Report on technology, participants, trends, market size and share
linux下配置Mysql授权某个用户远程访问,不受ip限制
Data security industry series Salon (III) | data security industry standard system construction theme Salon
Take you ten days to easily complete the go micro service series (I)
关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...