[英]How understand what the space type in the text
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)))
.非常感谢@lurker,我的任务是这样的:
Array.split(new RegExp(String.fromCharCode(10)))
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.