按照普遍的特殊字符分割字符串
字符串
textSplitCase('foo-bar'); /// ['foo', 'bar']textSplitCase('foo_bar'); /// ['foo', 'bar']textSplitCase('foo bar'); /// ['foo', 'bar']textSplitCase('foo.bar'); /// ['foo', 'bar']textSplitCase('fooBar'); /// ['foo', 'bar']textSplitCase('foo-Bar'); /// ['foo', 'bar'] Copy
textSplitCase('foo-bar'); /// ['foo', 'bar']textSplitCase('foo_bar'); /// ['foo', 'bar']textSplitCase('foo bar'); /// ['foo', 'bar']textSplitCase('foo.bar'); /// ['foo', 'bar']textSplitCase('fooBar'); /// ['foo', 'bar']textSplitCase('foo-Bar'); /// ['foo', 'bar']
按照普遍的特殊字符分割字符串