会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
满眼都是她
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2020年11月23日
Laravel 支付宝支付
摘要: 首先下载PHP版本的Demo 官方版本:Demo 个人:Demo 下载的包放到Laravel框架: 在app/新建libs文件夹,将SDK包放在该目录下 Config配置: 下载开发助手、配置对应的密钥: 点我 找到根目录下的composer.json文件,添加如下配置: "autoload": {
阅读全文
posted @ 2020-11-23 14:04 满眼都是她
阅读(267)
评论(0)
推荐(0)
2020年11月20日
Laravel 节点列表
摘要: 模型层: //绑定数据表’ protected $table = 'node'; protected $guarded = []; //获取全部数据 public function getAllList() { $data = self::get()->toArray(); return $this
阅读全文
posted @ 2020-11-20 14:59 满眼都是她
阅读(122)
评论(0)
推荐(0)
2020年11月17日
Laravel 验证码
摘要: 开发环境: laravel5.5 php7.1.11 验证码 是防止恶意破解密码、刷票、论坛灌水、刷页的手段。验证码有 多种类型。 现在我给大家实现如何使用图片验证码,其原理是让用户输入一个扭曲变形的图片上所显示的文字或数字,扭曲变形是为了避免被光学字符识别软件(OCR)自动辨识。由于计算机无法识别
阅读全文
posted @ 2020-11-17 21:23 满眼都是她
阅读(178)
评论(0)
推荐(0)
Laravel redis秒杀
摘要: php写个函数 <?php phpinfo(); 访问并查看php是否有redis 没有则下载redis==>点我跳转 注:下载与php对应的版本号 ! 解压缩后,将php_redis.dll和php_redis.pdb拷贝至php的ext目录下 4.修改php.ini,(PS:此php.ini文件
阅读全文
posted @ 2020-11-17 15:28 满眼都是她
阅读(378)
评论(0)
推荐(0)
2020年11月16日
jquery ajax五步走
摘要: $.ajax({ url: "/greet", data: {name: 'jenny'}, type: "POST", dataType: "json", success: function(data) { // data = jQuery.parseJSON(data); //dataType指
阅读全文
posted @ 2020-11-16 21:48 满眼都是她
阅读(88)
评论(0)
推荐(0)
2020年11月13日
laravel 自定义分页
摘要: 在config目录手动创建一个page.php文件: return[ 'pagesize'=>10, ]; 新建控制器: protected $pagesize = 10; public function __construct() { $this->pagesize = config('page.
阅读全文
posted @ 2020-11-13 09:57 满眼都是她
阅读(269)
评论(0)
推荐(0)
2020年11月12日
微信小程序分享好友
摘要: 相关链接:微信开发文档 wxml: <button class="fixed-text fixed-button" open-type="share" title="分享" hover-class="none">分享好友</button> js: onShareAppMessage:function
阅读全文
posted @ 2020-11-12 21:47 满眼都是她
阅读(442)
评论(0)
推荐(0)
微信小程序回到顶部
摘要: 一、使用view形式的回到顶部 wxml: <image src='图标' hidden='{{!floorstatus}}' bindtap="goTop" class="goTop"></image> wxss: /* 返回顶部 */ .goTop{ height: 80rpx; width:
阅读全文
posted @ 2020-11-12 21:36 满眼都是她
阅读(116)
评论(0)
推荐(0)
微信小程序 循环
摘要: 小程序请求: fangs(){ var th = this; wx.request({ url: 'http://www.zfw.com/api/v1/fangs', //仅为示例,并非真实的接口地址 data: { fangs:[], }, header: { 'content-type': 'a
阅读全文
posted @ 2020-11-12 21:18 满眼都是她
阅读(162)
评论(0)
推荐(0)
微信小程序 登录
摘要: 登录流程图: 整理思路: 1. 通过passport,账号密码登录获取token passport配置 2. 利用token拿到oppenid => AppID、AppSecret 、code 前两者是微信小程序开发者获取、code是小程序发送到服务器 小程序发起请求获取token并缓存到小程序:
阅读全文
posted @ 2020-11-12 11:33 满眼都是她
阅读(307)
评论(0)
推荐(1)
上一页
1
2
3
4
5
6
7
8
下一页
公告