不可见字符

 

 

const delAllNonPrintableCharacter = (str) => {
  const r = str.replace(/\s/g, '')
  return {
    isEmpty: r.length === 0,
    str: r
  }
}

 

posted @ 2018-09-10 21:44  papering  阅读(227)  评论(0编辑  收藏  举报