2018年3月19日

模拟Json格式传值请求与数据接收

摘要: a.php代码: b.php接收代码: a.php结果返回值为: httpCode:200 returnContent:Array([a] => 1, [b] => 2, [c] => 2) 阅读全文

posted @ 2018-03-19 11:57 loveking_阳 阅读(311) 评论(0) 推荐(0) 编辑

将PHP程序中返回的JSON格式数据用gzip压缩输出

摘要: //phpinfo(); 搜索下 zlib 是否开启 //此示例开启压缩 Content-Length:124 Size: 404B //未开启gzip压缩 Content-Length:675 Size: 907B //可以在config.php 添加变量设置是否开启gzip压缩 $config['compress_output'] = TRUE; // if($this->confi... 阅读全文

posted @ 2018-03-19 11:42 loveking_阳 阅读(593) 评论(0) 推荐(0) 编辑

计算两点地理坐标之间的距离

摘要: /** * 计算两点地理坐标之间的距离 * @param Decimal $origin_lng 起点经度 * @param Decimal $origin_lat 起点纬度 * @param Decimal $destination_lng 终点经度 * @param Decimal $destination_lat 终点纬度 * @param Int ... 阅读全文

posted @ 2018-03-19 11:31 loveking_阳 阅读(1737) 评论(0) 推荐(0) 编辑

Jquery CheckBox 选中和非选中

摘要: if($("input[name='is_pay']").prop('checked')) { $("input[name='is_pay']").prop('checked', true); $("input[name='is_pay']").attr("checked",true); } else { $("input[name='is_pay']").prop('checked... 阅读全文

posted @ 2018-03-19 11:30 loveking_阳 阅读(341) 评论(0) 推荐(0) 编辑

导航