会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zrn
phper的小白进阶之路
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
下一页
2018年9月5日
thinkphp5 数组分页
摘要: // 每页数据数,当前页,数组,排序(0不变,1反序) function page_array($count,$page,$array,$order){ $page=(empty($page))?'1':$page; #判断当前页面是否为空 如果为空就表示为第一页面 $start=($page-1)*$count; #计算每次分页的开始位置 ...
阅读全文
posted @ 2018-09-05 13:32 zrn
阅读(1214)
评论(0)
推荐(0)
编辑
2018年8月14日
curl http验证
摘要: function get_http($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); c...
阅读全文
posted @ 2018-08-14 10:26 zrn
阅读(1039)
评论(0)
推荐(0)
编辑
2018年8月9日
微信网页扫码登录
摘要: var $appid ='*********'; var $appsecret ='**********'; //构造函数,获取Access Token public function __construct($appid = NULL, $appsecret = NULL){ parent::__construct(); //扫码登录...
阅读全文
posted @ 2018-08-09 11:51 zrn
阅读(649)
评论(0)
推荐(0)
编辑
获取天气信息
摘要: //获取天气 function getweather($city){ //传入需要查询的城市 $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, "http://wthrcdn.etouch.cn/weather_mini?city=$city"); curl_setopt($ch, CU...
阅读全文
posted @ 2018-08-09 11:36 zrn
阅读(137)
评论(0)
推荐(0)
编辑
ActiveMq获取topic数据
摘要: subscribe($queue); while(true) { //判断是否有读取的信息 if($stomp->hasFrame()) { $frame = $stomp->readFrame(); $data = json_decode($frame->body, true); //保存原始接收日志 file...
阅读全文
posted @ 2018-08-09 11:32 zrn
阅读(2428)
评论(0)
推荐(0)
编辑
获取网页cookie信息文件实现模拟登录
摘要: //获取cookie信息 public function get_cookie(){ header("Content-Type: text/html;charset=utf-8"); $url = 'http://signin.aliyun.com/login.htm'; //url地址 $post = "user_principal_na...
阅读全文
posted @ 2018-08-09 10:31 zrn
阅读(2301)
评论(0)
推荐(0)
编辑
获取指定字符串中间的值
摘要: // 字符串 起始字符串 结束字符串function GetBetween($content,$start,$end){ $r = explode($start, $content); if (isset($r[1])){ $r = explode($end, $r[1]); re...
阅读全文
posted @ 2018-08-09 10:25 zrn
阅读(892)
评论(0)
推荐(0)
编辑
Thinkphp5添加自定义config文件
摘要: 1.创建extra自定义配置文件 在application/extra文件夹中新增一个web.php文件,在里面写好自定义配置项: 2.创建自定义配置文件控制器 新建一个控制器,比如application/admin/controller/Config.php: 其中WEB_DESCRIPTION就
阅读全文
posted @ 2018-08-09 10:09 zrn
阅读(6733)
评论(0)
推荐(0)
编辑
2018年7月27日
vue第一课
摘要: 1.模板嵌套 2.简单的if判断 3.for循环 4.text标签与html标签 5.点击事件
阅读全文
posted @ 2018-07-27 15:15 zrn
阅读(150)
评论(0)
推荐(0)
编辑
安装vue教程
摘要: 1.下载vue.js 官网地址:https://cn.vuejs.org/v2/guide/installation.html 我选择的是开发版本,点击会出来一个js页面 将js代码复制到一个js文件中,放在根目录下或者单文件需要调用的地方。 2.因为vue依赖于nodejs,所以要下载nodejs
阅读全文
posted @ 2018-07-27 13:24 zrn
阅读(194)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
下一页
公告