摘要: #获取本周时间查询 type 1:今天 2昨天 3:本周 4:本月 5:一年 public function getTime($type){ $time = time(); $data = getdate($time); $year = $data['year']; //年度 2020 $month 阅读全文
posted @ 2020-07-04 10:35 洗洗睡吧° 阅读(389) 评论(0) 推荐(0)
摘要: 1,header()函数是PHP中进行页面跳转的一种十分简单的方法。主要功能是将HTTP协议标头(header)输出到浏览器。 header("Location: https://www.baidu.com"); exit(); tp5的三种跳转 //正常跳转 $this->redirect('mo 阅读全文
posted @ 2020-04-17 16:54 洗洗睡吧° 阅读(519) 评论(0) 推荐(0)
摘要: function showMsg(msg, icon){ layer.msg(msg, { //1:正确;2:错误;3:询问;4:锁定;5:失败;6:成功;7:警告;16:加载 icon : icon, offset : 0, shift : 6, //抖动效果 time : 3000 }); } ... 阅读全文
posted @ 2019-06-25 14:38 洗洗睡吧° 阅读(1016) 评论(0) 推荐(0)
摘要: /** * @example thinkphp里模版文件js无法使用if condition的问题 * @example 参考地址:https://segmentfault.com/q/1010000008729571 * @example 主要代码:(item.is_show == 1?'<i>待 阅读全文
posted @ 2019-06-24 17:30 洗洗睡吧° 阅读(372) 评论(0) 推荐(0)