Method description:
Converts a string of a specific literal separator '//' or '/' to an array object.
grammar:
The code copy is as follows:
path.sep
Since this method belongs to the path module, you need to introduce the path module before use (var path= require("path") )
Receive parameters:
none
example:
The code copy is as follows:
Examples under *nix system:
'foo/bar/baz'.split(path.sep)
// returns
['foo', 'bar', 'baz']
Examples under Windows system
'foo//bar//baz'.split(path.sep)
// returns
['foo', 'bar', 'baz']