会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
洗洗睡吧°
博客园
首页
新随笔
联系
管理
订阅
2020年7月4日
获取 (今天 昨天 本月 本周 一年 类型)的开始时间戳
摘要: #获取本周时间查询 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)
2020年4月17日
think PHP5中,模板、控制器、JavaScript的url跳转重定向方法
摘要: 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)
2019年6月25日
layer实现窗口抖动效果
摘要: 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)
2019年6月24日
thinkphp里模版文件js无法使用if condition的问题
摘要: /** * @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)
公告