Node.js的Path模块中,用于获取文件目录的函数是()。

Node.js的Path模块中,用于获取文件目录的函数是()。

A.basename(p[,ext])

B.dirname(p)

C.normalize(p)

D.sep

正确答案:dirname(p)

猜你喜欢