会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
生如夏花死如秋叶
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2019年6月3日
thinkphp5 在模型操作中使用锁
摘要: 1 public static function alter($aid, $rid) 2 { 3 $incDec = GoldRule::where(['gold_rule_isdel'=>1,'gold_rule_status'=>2]) 4 ->where('gold_rule_id', $ri
阅读全文
posted @ 2019-06-03 13:56 生如夏花死如秋叶
阅读(2789)
评论(0)
推荐(0)
2019年4月22日
axios提交
摘要: axios.post('/cancellation_msg_getnum', {msg:msg}, {headers:{"Content-Type":'application/x-www-form-urlencoded;charset=UTF-8'}} ).then(function(...
阅读全文
posted @ 2019-04-22 09:44 生如夏花死如秋叶
阅读(98)
评论(0)
推荐(0)
2019年1月24日
TP5 find_in_set用法
摘要: 转自:http://www.02405.com/program/php/1099.html $where['class_id'] = ['in', '$cid_all']; $where['id'] = ['in', $all_user_id];//或这样子 $where['title'] = ['
阅读全文
posted @ 2019-01-24 16:43 生如夏花死如秋叶
阅读(3046)
评论(0)
推荐(0)
2019年1月23日
关于textarea 保持换行
摘要: 存入数据库之前将换行符进行替换 存入数据库有2中情况 <br/>直接存入 或者转换成 <br/> <br/>可以直接取出展示 <br/>需要转换成为<br/> JavaScript转换方法:
阅读全文
posted @ 2019-01-23 11:28 生如夏花死如秋叶
阅读(1967)
评论(0)
推荐(0)
2019年1月16日
php 无限分类递归及其排序详细解读
摘要: 转自:https://blog.csdn.net/belen_xue/article/details/59121554 在各种栏目以及分类设置中,无限分类经常会被用到,而无限分类在进行排序的时候必然要用到递归,这里进行一次详细的分析解读。 首先我们先了解一下递归函数: 递归函数在语言学习的时候会单独
阅读全文
posted @ 2019-01-16 15:04 生如夏花死如秋叶
阅读(596)
评论(0)
推荐(0)
2019年1月10日
websocket 断线重连
摘要: 1 var ws = new WebSocket("ws://127.0.0.1:8282"); 2 console.log(ws); 3 ws.onopen = function(e){ 4 console.log('链接成功了'); 5 }; 6 ws.onmessage = function(e){ 7 // ...
阅读全文
posted @ 2019-01-10 10:30 生如夏花死如秋叶
阅读(537)
评论(0)
推荐(0)
2018年12月21日
thinkphp5 分页css
摘要: 附上一段抽离出来的bootstrap的css样式,送给喜欢TP5的朋友.pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; }.pagination li { display
阅读全文
posted @ 2018-12-21 14:15 生如夏花死如秋叶
阅读(168)
评论(0)
推荐(0)
2018年12月13日
thinkphp5中where条件使用数组表达式
摘要: Db::table('think_user')->where(['name' => ['like','thinkphp%'],'title' => ['like','%thinkphp'],'id' => ['>',0],'status'=> 1])->select();
阅读全文
posted @ 2018-12-13 11:08 生如夏花死如秋叶
阅读(6819)
评论(0)
推荐(0)
2018年11月30日
php实现微信模板消息推送
摘要: 转自:https://www.jb51.net/article/137428.htm 这篇文章主要为大家详细介绍了php实现微信模板消息推送,具有一定的参考价值,感兴趣的小伙伴们可以参考一下 本文实例为大家分享了php微信模板消息推送的具体代码,供大家参考,具体内容如下 1.微信公众号模板消息配置
阅读全文
posted @ 2018-11-30 16:51 生如夏花死如秋叶
阅读(4855)
评论(0)
推荐(0)
2018年11月20日
PHP Date()函数详细参数
摘要: 转自:http://www.cnblogs.com/glory-jzx/archive/2012/09/29/2708396.html 在页面的最前页加上date_default_timezone_set('PRC'); /*把时间调到北京时间,php5默认为格林威治标准时间*/date ()a:
阅读全文
posted @ 2018-11-20 19:04 生如夏花死如秋叶
阅读(3510)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告