当前位置:网站首页>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);
边栏推荐
- [error record] the connection of the flutter device shows loading (disconnect | delete the shuttle/bin/cache/lockfile file)
- False summer vacation
- Routing mode: hash and history mode
- 数据安全产业系列沙龙(三)| 数据安全产业标准体系建设主题沙龙
- [cloud native] briefly talk about the understanding of flume, a massive data collection component
- 国内比较好的OJ平台[通俗易懂]
- Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...
- 学生选课系统(山东农业大学课程设计)
- Go zero micro service practical series (VIII. How to handle tens of thousands of order requests per second)
- PWM controlled steering gear
猜你喜欢

Privacy computing technology innovation and industry practice seminar: Learning

Where can I open computer administrator permissions

关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...

Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation

Seal Library - installation and introduction

Go zero micro service practical series (VIII. How to handle tens of thousands of order requests per second)

Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...

曆史上的今天:支付寶推出條碼支付;分時系統之父誕生;世界上第一支電視廣告...

Data security industry series Salon (III) | data security industry standard system construction theme Salon

⌈ 2022 ⌋ how to use webp gracefully in projects
随机推荐
The median salary of TSMC's global employees is about 460000, and the CEO is about 8.99 million; Apple raised the price of iPhone in Japan; VIM 9.0 releases | geek headlines
Headline | Asian control technology products are selected in the textile and clothing industry digital transformation solution key promotion directory of Textile Federation
john爆破出现Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])
Mathematical analysis_ Notes_ Chapter 6: Riemann integral of univariate function
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
LeetCode 2. 两数相加
Yyds dry inventory uses thread safe two-way linked list to realize simple LRU cache simulation
关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
Go zero micro service practical series (VIII. How to handle tens of thousands of order requests per second)
Global and Chinese market of jacquard looms 2022-2028: Research Report on technology, participants, trends, market size and share
DGraph: 大规模动态图数据集
618深度複盤:海爾智家的制勝方法論
618 reprise en profondeur: la méthode gagnante de la famille Haier Zhi
台积电全球员工薪酬中位数约46万,CEO约899万;苹果上调日本的 iPhone 售价 ;Vim 9.0 发布|极客头条...
LeetCode 5. Longest Palindromic Substring
LeetCode 6. Z 字形变换 (N字形变换)
TCP server communication process (important)
AcWing 300. Task arrangement
La boîte de connexion du hub de l'unit é devient trop étroite pour se connecter
基于Impala的高性能数仓实践之执行引擎模块