当前位置:网站首页>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);
边栏推荐
- Machine learning perceptron model
- Ranger (I) preliminary perception
- 大廠面試總結大全
- pwm呼吸灯
- Seal Library - installation and introduction
- Mathematical analysis_ Notes_ Chapter 5: univariate differential calculus
- Aujourd'hui dans l'histoire: Alipay lance le paiement par code à barres; La naissance du père du système de partage du temps; La première publicité télévisée au monde...
- 关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
- How to solve the failure of printer driver installation of computer equipment
- 618 reprise en profondeur: la méthode gagnante de la famille Haier Zhi
猜你喜欢
Just a coincidence? The mysterious technology of apple ios16 is even consistent with the products of Chinese enterprises five years ago!
隐私计算技术创新及产业实践研讨会:学习
⌈ 2022 ⌋ how to use webp gracefully in projects
Analyzing more than 7million R & D needs, it is found that these eight programming languages are the most needed in the industry!
Classifier visual interpretation stylex: Google, MIT, etc. have found the key attributes that affect image classification
台积电全球员工薪酬中位数约46万,CEO约899万;苹果上调日本的 iPhone 售价 ;Vim 9.0 发布|极客头条...
数据安全产业系列沙龙(三)| 数据安全产业标准体系建设主题沙龙
Unity使用UGUI设置一个简单多级水平方向下拉菜单(不需要代码)
LeetCode 2. 两数相加
PhD Debate-11 预告 | 回顾与展望神经网络的后门攻击与防御
随机推荐
Interview summary of large factories
uboot的作用和功能
Day 18 of leetcode dynamic planning introduction
618 deep resumption: Haier Zhijia's winning methodology
基于多元时间序列对高考预测分析案例
Executive engine module of high performance data warehouse practice based on Impala
How to choose the right kubernetes storage plug-in? (09)
C语言中sprintf()函数的用法
头条 | 亚控科技产品入选中纺联《纺织服装行业数字化转型解决方案重点推广名录》
分析超700万个研发需求发现,这8门编程语言才是行业最需要的!
go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)
pwm呼吸灯
Global and Chinese market of oil analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
小鹏P7雨天出事故安全气囊没有弹出 官方回应:撞击力度未达到弹出要求
Mathematical analysis_ Notes_ Chapter 6: Riemann integral of univariate function
Written by unity Jason
图书管理系统(山东农业大学课程设计)
曆史上的今天:支付寶推出條碼支付;分時系統之父誕生;世界上第一支電視廣告...
云原生的 CICD 框架:Tekton
易语言abcd排序