JavaScript

JavaScript:去掉字符串指定首尾字符

2022-02-28  本文已影响0人  东方晓

2022-02-28 周一

let str= str.replace(/^(\s|")+|(\s|")+$/g, '');
上一篇下一篇

猜你喜欢

热点阅读