What creates the new line for each letter that requires the regular expression: const innerWord = wordEl.innerText.replace(/[ \n]/g, '');

前端 未结 0 1233
灰色年华
灰色年华 2021-02-15 09:12

I understand this code except from things being returned with a new line, rather than one array on the same line, thus requiring the regular expression. Is the map returning one

相关标签:
回答
  • 消灭零回复
提交回复
热议问题