So. I have some text with spaces. We have two types of spaces: enter(like new string), and just space between word. How to understand what type is used in the text, use only code?
Thank a lot @lurker, I do my task something like that: Array.split(new RegExp(String.fromCharCode(10)))
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.