不可见字符

 

 

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

 

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