演示进入workingjob.cn
公用http请求
基于react安全请求
引入使用 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); })