• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
qiqi105
博客园    首页    新随笔    联系   管理    订阅  订阅
2017年8月23日
modules
摘要: var module={}; module.exports={}; var exports=module.exports; var module={}; module.exports={}; var exports=module.exports; 阅读全文
posted @ 2017-08-23 14:38 qiqi105 阅读(137) 评论(0) 推荐(0)
node中的module中的parent
摘要: Module { id: '.', exports: {}, parent: null, filename: 'D:\\000000000000linux\\十五 node\\02-2016-03-03\\视频2\\1.js', loaded: false, children: [], paths: 阅读全文
posted @ 2017-08-23 14:28 qiqi105 阅读(388) 评论(0) 推荐(0)
node路径
摘要: fs.readFile(__dirname+'/../1.txt','utf8',(err,data)=>{ console.log(data.toString()); }); fs.readFile(__dirname+'/../1.txt','utf8',(err,data)=>{ consol 阅读全文
posted @ 2017-08-23 14:16 qiqi105 阅读(122) 评论(0) 推荐(0)
node是单线程的,不能写死循环
摘要: 递归 循环依赖/死循环 递归 循环依赖/死循环 阅读全文
posted @ 2017-08-23 11:36 qiqi105 阅读(173) 评论(0) 推荐(0)
node单线程
摘要: const fs=require('fs'); console.time('timer'); fs.stat('./1.txt',(err,stats)=>{ //console.log(stats); if(err){ console.log('文件不存在'); fs.writeFile('./1 阅读全文
posted @ 2017-08-23 11:23 qiqi105 阅读(153) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3