📜  删除空格和换行符 javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:15.440000             🧑  作者: Mango

代码示例1
const originalString = `
  

Hey that's somthing

`; const strippedString = originalString.replace(/(<([^>]+)>)/gi, ""); console.log(strippedString);