验证路径,包含 Linux 和 Windows 的文件地址和文件夹地址。
0.0.1
isPath('D:\\') // trueisPath('D:\\1.md') // trueisPath('/home/') // trueisPath('/home/index.html') // true Copy
isPath('D:\\') // trueisPath('D:\\1.md') // trueisPath('/home/') // trueisPath('/home/index.html') // true
验证路径,包含 Linux 和 Windows 的文件地址和文件夹地址。