[Node-api-path]#NodeJs
//http://nodejs.cn/api/path.html#path_path_basename_path_ext
const path=require("path");
/*[extname]-返回.md*/
const exname=path.extname('index.coffee.md');
/*[basename]-获取文件或路径的最后一级路径*/
const basepath=path.basename("J:\f1\f2\f3");
/*[basename]-筛选返回结果 返回: 'quux'*/
const basename=path.basename('/foo/bar/baz/asdf/quux.html', '.html');
/*这里会返回f3*/
console.log(basepath);