摘要: JS遍历原理,一个父复选框按钮被选后,所有子复选框按钮也全部选中 阅读全文
posted @ 2018-04-17 17:18 MeetU 阅读(292) 评论(0) 推荐(0) 编辑
摘要: vendor('wechat.action.PacketClass'); vendor('wechat.lib.WxApi'); $packet = new \PacketClass(); 阅读全文
posted @ 2018-02-09 19:22 MeetU 阅读(511) 评论(0) 推荐(0) 编辑
摘要: $m = D("qipai_logic.roomhisscoredetail"); $where['uid'] = $uid; $productinfo = $m->where($where)->field('roomid,uid,name,max(turn) as roomturn')->group('roomid')->buildSql();//子查询 $allturn = M()... 阅读全文
posted @ 2018-02-09 15:50 MeetU 阅读(105) 评论(0) 推荐(0) 编辑
摘要: explode() 函数把字符串打散为数组。eg:$pieces = explode("_", $_uid_uid); implode()把数组元素组合为字符串。 array_filter()剔除数组空值。$pieces = array_filter($piece);//剔除数组空值 阅读全文
posted @ 2018-01-20 16:09 MeetU 阅读(98) 评论(0) 推荐(0) 编辑
摘要: example: 阅读全文
posted @ 2018-01-20 11:11 MeetU 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 如图所示: 实现上图功能,创建两张表:签到奖品表、签到记录表(这个表可以再拆分出一个表) 1 /** 2 *功能:计算两个时间戳之间相差的日时分秒 3 *$begin_time 开始时间戳 4 *$end_time 结束时间戳 5 */ 6 public function timediff($beg 阅读全文
posted @ 2017-12-06 16:53 MeetU 阅读(4988) 评论(0) 推荐(0) 编辑
摘要: $a = array( array('id'=>'113','email'=>'yintx_1292342352@163.com'), array('id'=>'111','email'=>'yintx_1293456456@163.com'), array('id'=>'109','email'=>'yintx_129@99999.com') ); $b ... 阅读全文
posted @ 2017-07-14 18:44 MeetU 阅读(2730) 评论(0) 推荐(0) 编辑
摘要: 2.获取指定时间戳 //PHP获取今天内的时间 今天开始和结束的时间戳 3.获取指定时间(格式:2017-11-16 0:0:0) 阅读全文
posted @ 2017-07-06 19:13 MeetU 阅读(3246) 评论(0) 推荐(1) 编辑
摘要: 在http://phpexcel.codeplex.com/下载最新PHPExcel放到Vendor下,注意位置:ThinkPHP\Extend\Vendor\PHPExcel\PHPExcel.php。 这几句可能需要修改: 实现代码: 阅读全文
posted @ 2017-07-06 19:08 MeetU 阅读(1179) 评论(0) 推荐(0) 编辑
摘要: 基于ThinkPHP,按“月份”统计订单表中的总金额 数据表:(time:为年月日时分秒的时间戳,非时间戳时,用DATE_FORMAT) 实现样式: 核心代码: 备注:(使用原生mysql语句实现) 参考:https://segmentfault.com/a/1190000009304983?_ea 阅读全文
posted @ 2017-07-06 18:55 MeetU 阅读(4550) 评论(0) 推荐(0) 编辑