站内搜索:
首页 >> 前端 >> 内容
9.依赖库:statuses

时间:2017/2/17 9:23:56

前言

安装

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.

  • 上一篇:bootstrap-datetimepicker添加支持显示农历节假日信息。
  • 下一篇:html标签学习
  • 返回顶部