Skip to content

Commit

Permalink
add:koa
Browse files Browse the repository at this point in the history
  • Loading branch information
xiannvjiadexiaogouzi authored and xiannvjiadexiaogouzi committed Nov 29, 2020
1 parent c1c0d44 commit 9efcff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/koa/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ const static = require('./static')
app.use(static(__dirname + '/static'))
```

>`path.resolve(path1, path2, ...)`:给定的路径序列从右到左处理,`path1 + path2 + ...`,返回一个拼接后的绝对路径;
>`path.resolve(path1, path2, ...)`:给定的路径序列从右到左处理,`path1 + path2 + ...`,返回一个拼接后的绝对路径;
>[path文档](https://nodejs.org/api/path.html)
>`fs.statSync(path)`:返回`path`文件的基本信息;
>`fs.readdirSync(path)`: 以数组返回`path`目录内的所有文件名
Expand Down

0 comments on commit 9efcff5

Please sign in to comment.