Home
Sign Up
Sign In
Advertisement
V2EX
›
Node.js
不懂就问: nodejs readline 模块问题
kuyuzhiqi
·
May 27, 2020
· 3589 views
This topic created in 2189 days ago, the information mentioned may be changed or developed.
官方推荐在读取文件的时候不要先判断而是直接读取,出错了再处理,但 readline 模块好像没法捕获异常,比如读取一个不存在的文件时候,在读取一个空白文件的时候,多执行几遍就卡在那了,求大佬们指点
No Comments Yet
读取
readline
文件
模块
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
3208 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms ·
UTC 12:54
·
PVG 20:54
·
LAX 05:54
·
JFK 08:54
♥ Do have faith in what you're doing.
❯