摘要: 如果在请求中不设置超时时间,那么一直处理loading卡屏状态,使用connect-timeout来设置自动超时时间。 安装: npm install connect-timeout -S 如下例子: var timeout = require("connect-timeout"); app.use 阅读全文
posted @ 2021-03-13 10:06 风雨后见彩虹 阅读(1095) 评论(0) 推荐(0) 编辑