不可见字符

const delAllNonPrintableCharacter = (str) => {
  const r = str.replace(/s/g, '')
  return {
    isEmpty: r.length === 0,
    str: r
  }
}
原文地址:https://www.cnblogs.com/rsapaper/p/9623326.html