0.0.4 • Published 5 years ago
oddrouter v0.0.4
reactsafebox (奇数官方workingjob.cn)
演示进入workingjob.cn
介绍
公用http请求
软件架构
基于react安全请求
使用 提供debug模式
引入使用 import {http} from "reactsafebox"
http({method:"GET",http:"http",url:"",data:{},debug:false})
方法内使用
http({method:"get",url:"/api/getjson"}).then(function(res){ console.log(res); }).catch(err=>{ console.log(err); })