会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
学无止境—勇攀高峰
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2022年10月10日
FastAdmin 框架 from 表单确定按钮为何无法点击?
摘要: 解决方法:新增的页面需要绑定一下事件 xxxx: function () { Controller.api.bindevent(); },
阅读全文
posted @ 2022-10-10 09:06 路三千
阅读(1169)
评论(0)
推荐(0)
2022年9月28日
PHP判断当前时间是否在设定时间段内
摘要: function public time_quantum(){ //当前年月日 $Date = date('Y-m-d ',time()); //年月日拼接开始时间 $Begin1 = strtotime($Date."08:00".":00"); //年月日拼接截止时间 $End1 = strto
阅读全文
posted @ 2022-09-28 14:53 路三千
阅读(37)
评论(0)
推荐(0)
2022年9月21日
ThinkPHP5错误解析之variable type error:array
摘要: 这种形式的数据同过POST提交数据在TP5框架内通过$request->post(‘参数’);去接收就会报错。 variable type error:array 这是因为tp5不能用post去接收数组‘data’:[1,2,3,4,5]这种数据。 在通过request的post方法取获取时,pos
阅读全文
posted @ 2022-09-21 10:22 路三千
阅读(1682)
评论(0)
推荐(0)
2022年9月16日
tp5 根据经纬度按距离排序
摘要: $list->whereNotNull('lat')->whereNotNull('long') ->order(Db::raw("(2 * 6378.137 * ASIN( SQRT( POW( SIN( PI( ) * ( $lng- `long` ) / 360 ), 2 ) + COS( P
阅读全文
posted @ 2022-09-16 10:35 路三千
阅读(116)
评论(0)
推荐(0)
tp5 getDistance函数计算两点经纬度之间距离
摘要: /** * 计算两点之间距离 * @param float $lat1 起始纬度 * @param float $lng1 起始经度 * @param float $lat2 终点纬度 * @param float $lng2 终点经度 * @return string */ function ge
阅读全文
posted @ 2022-09-16 10:28 路三千
阅读(278)
评论(0)
推荐(0)
2022年9月13日
FastAdmin插件控制器和ThinkPHP5控制器不同之处主要有以下几点
摘要: 基类不同 插件控制器基类为:\think\addons\Controller ThinkPHP5控制器基类为:\think\Controller 请求URL不同 插件控制器请求方法为:http://www.fa.com/addons/mydemo/控制器名/方法 ThinkPHP5控制器请求方法为:
阅读全文
posted @ 2022-09-13 15:24 路三千
阅读(163)
评论(0)
推荐(0)
2022年9月6日
fastadmin表格列表点击字段名称进行排序
摘要: fastadmin表格列表点击字段名称进行正序,倒叙排序 {field: 'createtime', title: __('Createtime'), sortable:true, operate:'RANGE', addclass:'datetimerange', formatter: Table
阅读全文
posted @ 2022-09-06 11:05 路三千
阅读(1665)
评论(0)
推荐(0)
2022年9月5日
fastadmin 使用 topthink/img 压缩、裁剪、加水印、处理图片
摘要: 使用Composer安装ThinkPHP5的图像处理类库: composer require topthink/think-image 在fastadmin中上传文件的公用方法中使用:fastadmin中文件路径:application/admin/controller/Ajax.php上传完后对图
阅读全文
posted @ 2022-09-05 14:28 路三千
阅读(1626)
评论(0)
推荐(0)
2021年12月16日
微信小程序常用的3种提示弹窗实现详解
摘要: 1. 表示操作成功,文字上方会显示一个表示操作成功的图标。 wx.showToast({ title: '操作成功!', // 标题 icon: 'success', // 图标类型,默认success duration: 1500 // 提示窗停留时间,默认1500ms }) 2.表示加载中,显示
阅读全文
posted @ 2021-12-16 16:10 路三千
阅读(2659)
评论(0)
推荐(0)
Yii2.0 事务处理
摘要: 在进行多表增删改的时候,为了确保多表数据的一致性,我们经常要用到事务处理 $examine = $this -> findModel($examine_id); $transaction = Yii::$app -> db -> beginTransaction(); // 开始事务 try { /
阅读全文
posted @ 2021-12-16 15:18 路三千
阅读(128)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告