当前位置:网站首页>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);
边栏推荐
- C语言中sprintf()函数的用法
- Thinking about absolute truth and relative truth
- 基于Impala的高性能数仓实践之执行引擎模块
- 七一献礼:易鲸捷 “百日会战”完美收官 贵阳银行数据库提前封板
- Yyds dry goods inventory has not revealed the artifact? Valentine's Day is coming. Please send her a special gift~
- 数据安全产业系列沙龙(三)| 数据安全产业标准体系建设主题沙龙
- [fluent] dart data type boolean type (boolean type definition | logical operation)
- How to choose the right kubernetes storage plug-in? (09)
- Serial port controls steering gear rotation
- Which software is good for machine vision?
猜你喜欢

Headline | Asian control technology products are selected in the textile and clothing industry digital transformation solution key promotion directory of Textile Federation

DGraph: 大规模动态图数据集

Executive engine module of high performance data warehouse practice based on Impala

七一献礼:易鲸捷 “百日会战”完美收官 贵阳银行数据库提前封板

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

基于多元时间序列对高考预测分析案例

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...

A week of short video platform 30W exposure, small magic push helps physical businesses turn losses into profits

Yolov5 practice: teach object detection by hand

SQL solves the problem of continuous login deformation holiday filtering
随机推荐
DigiCert SSL证书支持中文域名申请吗?
The login box of unity hub becomes too narrow to log in
ROW_NUMBER()、RANK()、DENSE_RANK区别
Classic quotations
配置基于接口的ARP表项限制和端口安全(限制用户私自接入傻瓜交换机或非法主机接入)
PCL least median square method fitting plane
L'explosion de John utilise l'encodage d'entrée par défaut: UTF - 8 Loaded 1 password Hash (bcrypt [blowfish 32 / 64 X3])
System Verilog implements priority arbiter
Unity Json 编写
Sim2real environment configuration tutorial
Masa framework - DDD design (1)
System Verilog实现优先级仲裁器
Mysql database mysqldump why there is no statement to create a database
PWM controlled steering gear
C语言中sprintf()函数的用法
Mathematical analysis_ Notes_ Chapter 5: univariate differential calculus
大廠面試總結大全
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
LeetCode 3. Longest substring without duplicate characters
TCP拥塞控制详解 | 2. 背景