如何通过白色空间分割字符串无论白色空间有多长?
例如,从以下字符串:
"the quick brown fox jumps over the lazy dog"
Run Code Online (Sandbox Code Playgroud)
我会得到一个数组
['the', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog'];
Run Code Online (Sandbox Code Playgroud)