
nodejs
程序员猪猪侠
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用nodejs创建http服务器
1 首先确保你已经正确安装了nodejs 2 使用npm安装http-server: npm install http-server -g 3 进入站点目录,使用命令行 http-server原创 2017-08-08 09:14:54 · 353 阅读 · 0 评论 -
node.js中检查目录是否存在
function checkDirExist(path) { try { return fs.statSync(path).isDirectory(); } catch (e) { if (e.code == 'ENOENT') { // no such file or directory. File really does not exist consol原创 2017-12-19 08:43:28 · 1460 阅读 · 0 评论