瘦PHP “来吧瘦爱” 瘦PHP是一个简单的框架,它取自于我创建的简单api。 它处理url路由并以JSON返回数据。 这就是它所做的一切。 我想要一些超细的东西,如果我想要更多的功能,则可以修改框架。 它很瘦(不胖)。 一个简单的应用可能看起来像: <?php require 'skinny.php'; $app = new skinnyApp(); $app->get('/', function() { return array(); }); $app->get('/hello/(.*)', function($name) { return "Hello $name!"; });
2022-06-08 16:14:34 3KB PHP
1
天气查询APP,两种JSON解析方式 /** * 原始json数据解析 * */ // JSONObject jsonObject = new JSONObject(res); // String reason=jsonObject.getString("reason"); // if (reason.equals("参数不正确")){ // handler.sendEmptyMessage(1); // return; // } // JSONObject result=jsonObject.getJSONObject("result"); // JSONObject realtime=result.getJSONObject("realtime"); // JSONObject life=result.getJSONObject("life"); // JSONObject wind=realtime.getJSONObject("wind"); // String time=realtime.getString("time"); // JSONObject weather=realtime.getJSONObject("weather"); // String date=realtime.getString("date"); // dateStr=time+date; // weekStr=realtime.getString("week"); // calendarStr=realtime.getString("moon"); // windpowerStr=wind.getString("direct")+" "+wind.getString("power"); // weatherStr=weather.getString("info"); // temperatureStr=weather.getString("temperature"); // JSONObject info=life.getJSONObject("info"); // JSONArray kongtiao=info.getJSONArray("kongtiao"); // JSONArray yundong=info.getJSONArray("yundong"); // JSONArray ziwaixian=info.getJSONArray("ziwaixian"); // ACStr=kongtiao.getString(0)+" "+kongtiao.getString(1); // sportStr=yundong.getString(0)+" "+yundong.getString(1); // lightStr=ziwaixian.getString(0)+" "+ziwaixian.getString(1); /** * Gson数据解析 */ WheatherBean wheatherBean=new Gson().fromJson(res,WheatherBean.class); String reason=wheatherBean.getReason(); if (reason.equals("参数不正确")){ handler.sendEmptyMessage(1); return; } WheatherBean.ResultBean resultBean=wheatherBean.getResult(); WheatherBean.ResultBean.RealtimeBean realtimeBean=resultBean.getRealtime(); WheatherBean.ResultBean.RealtimeBean.WindBean windBean=realtimeBean.getWind(); String time=realtimeBean.getTime(); WheatherBean.ResultBean.RealtimeBean.WeatherBean weatherBean=realtimeBean.getWeather(); String date=realtimeBean.getDate(); dateStr=time+date; weekStr=realtimeBean.getWeek(); calendarStr=realtimeBean.getMoon(); windpowerStr=windBean.getDirect()+" "+windBean.getPower(); temperatureStr=weatherBean.getTemperature(); weatherStr=weatherBean.getInfo(); WheatherBean.ResultBean.LifeBean lifeBean=resultBean.getLife(); WheatherBean.ResultBean.LifeBean.InfoBean infoBean=lifeBean.getInfo(); List kongtiao=infoBean.getKongtiao(); List yundong=infoBean.getYundong(); List ziwaixian=infoBean.getZiwaixian(); ACStr=kongtiao.get(0)+" "+kongtiao.get(1); sportStr=yundong.get(0)+" "+yundong.get(1); lightStr=ziwaixian.get(0)+" "+ziwaixian.get(1); }
2022-06-08 14:51:52 28.85MB Json
1
Vue表单JSON模式 一个基于的表单生成器,带上您的组件! 使用任何Vue组件或HTML元素! 没有预构建的组件可以让您困惑您的表单。 相反,您可以使用发出事件,自定义或本机事件的任何组件或元素。 请注意,基本上所有使用v-model Vue组件都会发出input (或类似)事件。 安装 从v1升级? 查看以了解迁移是否以及如何影响您。 从npm安装 npm install vue-form-json-schema 导入到您的应用 import Vue from 'vue' ; import VueFormJsonSchema from 'vue-form-json-schema'
2022-06-07 19:50:10 138KB components json schema generator
1
主要介绍了Android中使用HttpURLConnection实现GET POST JSON数据与下载图片,需要的朋友可以参考下
2022-06-07 17:40:43 49KB Android HttpURLConnection GET POST
1
XC云计算阿里巴巴 spring cloud阿里巴巴集成框架可替代docker部署已更新集成阿里spring cloud 2.2.1.RELEASE版 spring cloud更新为Hoxton.SR3版本 dubbo2.7.6 ps:已将相对应框架升级为最新版本 演示演示: sentinel帐号密码为哨兵nacos帐号密码为nacos 包裹名字 备注 XC服务 用于数据库连接,提供service impl类 XC管理员 为提示api连接,提供控制类 xc-api 用于提供接口信息,和一些共同的实体类 常见的 为提供一些公共库 闸门 网关,分配路由,用于调用管理类的控制层,无需关注端口,路由分配转发 xc-ui 后台页面,使用 react技术开发 增加mybatis多数据源操作,引用seate1.2处理分布式事务,多数据源事务,引用shardingSphere进行分库分表处理 项目布署图 它有什么作用 本框架使用spring cloud为基本架构,结合阿里dubbo + nacos提供服务层 再结合hibernate + pgsql + jpa为数据库连接层 以ignite强大的
2022-06-07 16:16:32 1.44MB spring-boot spring-cloud gateway sentinel
1
该项目旨在在 Lazarus 中创建和使用 REST/JSON,此代码将在未来用作 Lazarus/Delphi 中 REST Dataware 的基础。
2022-06-07 14:26:35 8.84MB 开源软件
1
python入门的到实践的population_data.json文件内容都
2022-06-07 10:54:45 1.36MB python
1
JSON查询语言 Jaql
2022-06-06 14:02:17 72.98MB json
核心板:stm32f103rct6。演示了如何在stm32中调用json库从而打包和发送数据包。简单易懂方便初学者进行学习。
2022-06-03 15:46:33 845KB stm32 json 串口通信
1
json的c语言源码,附带Makefile,可以交叉编译成库,linux环境亲测可用。
2022-06-03 14:12:55 20KB cjson库
1