- 博客(9)
- 收藏
- 关注
原创 php laravel接收安卓图片二进制流
微信h5页面ios上传图片没问题,但是安卓上传图片没有file,那是因为一些框架做了兼容把安卓上传改成二进制流文件了,下面是php laravel后台接收代码:$imgData = $request->all();$data = file_get_contents('php://input') ? file_get_contents('php://input') : gzuncomp...
2019-08-01 15:46:16
1865
原创 laravel wehre多条件变量搜索加分页
$where = 'where `gid`='.$gid.' and `aid`='.$aid; $key = trim($key) ? trim($key) : ''; if ($key) { $where = $where . " and (`name` like '%".$key."%')"; } ...
2019-07-25 10:26:17
283
翻译 高德地图获取当前定位坐标
var map, geolocation; //加载地图,调用浏览器定位服务 map = new AMap.Map('container', { resizeEnable: true }); map.plugin('AMap.Ge...
2019-06-15 13:47:10
10808
1
原创 百度获取当前坐标
var shopid = {$shopid};var map = new BMap.Map("allmap");var point = new BMap.Point(116.331398,39.897445);map.centerAndZoom(point,12);var geolocation = new BMap.Geolocation();geolocation.getCurr...
2019-06-12 12:31:39
1613
原创 jsTree语法基本操作简明demo
"plugins" : [ "checkbox", //添加checkbox "contextmenu", //选中右键文本内容 "dnd", //是否可以拖拽 "massload", "search", //搜索 "sort", //排序 "state", //在刷新之后保持刷新之前状态(比如选中和展开) "types", //...
2019-06-06 17:11:36
429
转载 禁止浏览器复制,手机复制文字
这篇文章主要讲解:右键复制失效方法、菜单"文件"-"另存为"失效方法、防止查看源代码进行复制的方法、防止页面缓存的方法。来达到一定的代码保护效果转载:http://www.fly63.com/article/detial/164右键复制失效方法:方法一:<script language="Javascript">document.oncontextmenu=n...
2018-07-17 17:45:13
5228
原创 thinkphp5.0分页获取不了参数
改成$list = Db::name('Action')->paginate(10,false,['query'=>request()->param()]);
2018-07-16 09:10:46
299
转载 php 获取linux时间少10分钟
PHP time()获取linux本地时间,linux本地时间慢10分钟,修改本地时间:设置系统时钟的操作: # date 091713272003.30 通用的设置格式: # date 月日时分年.秒 2.使用hwclock或clock命令查看和设置硬件时钟 查看硬件时钟的操作: # hwclock --show 或 # clock --show ...
2018-06-21 15:02:41
905
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅