您的位置:首页 > 其它

(Ryan的Koa系列博客)9.依赖库:statuses(本文尚未完成)

2017-02-16 17:03 295 查看

前言

安装

npm install statuses


依赖

var status = require('statuses')


用法

var code = status(Integer || String)

If Integer or String is a valid HTTP code or status message, then the appropriate code will be returned. Otherwise, an error will be thrown.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐