会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
YaLe
发光并非太阳的专利,你也可以发光。
首页
新随笔
联系
管理
上一页
1
2
3
4
5
下一页
2020年9月9日
layui-监听select事件
摘要: HTML部分 (lay-filter="demo") <div class="layui-form-item layui-hide"> <label class="layui-form-label">动物级别</label> <div class="layui-input-inline"> <sel
阅读全文
posted @ 2020-09-09 10:34 孤陌
阅读(10228)
评论(0)
推荐(0)
2020年8月29日
高德地图 坐标距离计算
摘要: 计算函数放到公共文件头部 <script> function getDistance(lat1, lon1, lat2, lon2) { var radLat1 = (lat1 * Math.PI) / 180; //将角度换算为弧度 var radLat2 = (lat2 * Math.PI) /
阅读全文
posted @ 2020-08-29 11:09 孤陌
阅读(2999)
评论(0)
推荐(0)
2020年8月26日
高德地图定位JS API
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>道德地图定位</title> 6 <meta name="renderer" content="webkit"> 7 <meta name=
阅读全文
posted @ 2020-08-26 10:44 孤陌
阅读(828)
评论(0)
推荐(0)
2020年8月8日
php 阿里短信接口部署
摘要: composer 安装三方类:composer require alibabacloud/client 发送短信类 <?php namespace app\common\controller; use think\Controller; use AlibabaCloud\Client\Alibaba
阅读全文
posted @ 2020-08-08 23:41 孤陌
阅读(316)
评论(0)
推荐(0)
2020年8月6日
TP+Layui 实现全选时间 和 下拉框改变事件
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>layui</title> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" c
阅读全文
posted @ 2020-08-06 23:13 孤陌
阅读(1202)
评论(1)
推荐(0)
PHP 金额转为中文大写
摘要: /** * 将数值金额转换为中文大写金额 * @param $amount float 金额(支持到分) * @param $type int 补整类型,0:到角补整;1:到元补整 * @return mixed 中文大写金额 */ public function convertAmountToCn
阅读全文
posted @ 2020-08-06 09:25 孤陌
阅读(1118)
评论(0)
推荐(0)
微信小程序登录并生成小程序二维码
摘要: 后台操作 public function login(){ $post = $this->request->param(); $url="https://api.weixin.qq.com/sns/jscode2session?appid=".$post['appid']."&secret=".$p
阅读全文
posted @ 2020-08-06 09:20 孤陌
阅读(717)
评论(0)
推荐(0)
2020年8月5日
生成和解密token
摘要: composer 安装JWT composer require firebase/php-jwt 首先在应用公共文件中引入JWT use Firebase\JWT\JWT; 创建token /** * 创建 token * @param array $data 必填 自定义参数数组 * @param
阅读全文
posted @ 2020-08-05 19:04 孤陌
阅读(3857)
评论(0)
推荐(0)
jQuery 返回上一页
摘要: //以下方法仅供参考1、返回上一页,不刷新history.html window.history.go(-1); javascript:window.history.go(-1) 2、返回上一页并刷新页面 avascript:location.replace(this.href);event.ret
阅读全文
posted @ 2020-08-05 18:47 孤陌
阅读(3115)
评论(0)
推荐(0)
tp allowField
摘要: allowField 也可以直接带更新条件来更新数据 $user = new User; // save方法第二个参数为更新条件 $user->save([ 'name' => 'thinkphp', 'email' => 'thinkphp@qq.com' ],['id' => 1]); 如果需要
阅读全文
posted @ 2020-08-05 18:44 孤陌
阅读(1239)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页