importpathfrom'path';constobj=path.parse('img/works.png');obj是undefined,官方說應該類似:{root:"/",dir:"/home/user/dir",base:"file.txt",ext:".txt",name:"file"}https://nodejs.org/api/path.html#path_path_parse_pathstring
nodejs 的 path.parse 為什么會返回 undefined
函數式編程
2019-04-21 20:15:11