会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
躺枪
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
7
下一页
2019年1月2日
mysql主要的类型
摘要: int 整型 最大长度为10 十亿级别 tinyint 类型长度最大为5 一万级别 double 类型实际长度为定义长度加2 char 定长字符 最大长度为14 varchar 变长字符 很长 支持中文 时间戳 int 10
阅读全文
posted @ 2019-01-02 17:02 躺枪
阅读(120)
评论(0)
推荐(0)
编辑
2018年12月11日
上拉加载
摘要: var _load_flag = false,_load_time = 0;//滚动开关 function getData(is_initial){ if(_load_flag) return false; var now_time = new Date().getTime(); if(now_time-_load_time max_scroll_top){ ...
阅读全文
posted @ 2018-12-11 10:34 躺枪
阅读(108)
评论(0)
推荐(0)
编辑
2018年12月7日
轮播图
摘要: //轮播图 var ad_pic = $(".ad_pic"); var div = ad_pic.find("div"); var oneWidth = div.eq(0).width(); var number = $('.ad_pic_pagination').f...
阅读全文
posted @ 2018-12-07 11:48 躺枪
阅读(64)
评论(0)
推荐(0)
编辑
2018年11月27日
回车搜索
摘要: $(".me-search-input").keyup(function (e) { if (e.keyCode 13) { $("#search").click(); return false; } });
阅读全文
posted @ 2018-11-27 16:41 躺枪
阅读(63)
评论(0)
推荐(0)
编辑
2018年11月1日
SQLSTATE[21S01]
摘要: 用addAll的时候字段不能为null if(is_null($v['path'])) $add_data[$k]['path'] = '';
阅读全文
posted @ 2018-11-01 15:03 躺枪
阅读(368)
评论(0)
推荐(0)
编辑
2018年10月29日
图片懒加载
摘要: <img src="/static/loading.gif" data-src="http://真正的图片地址/xxx.jpg"> $(window).on('scroll',function () { //当页面滚动的时候绑定事件 $('.container img').each(function
阅读全文
posted @ 2018-10-29 13:59 躺枪
阅读(140)
评论(0)
推荐(0)
编辑
2018年10月19日
列表分页
摘要: $count=count($list); $Page=new \Think\Page($count,4); $show = $Page->show(); $list=array_slice($list,$Page->firstRow,$Page->listRows); $this->assign('
阅读全文
posted @ 2018-10-19 16:09 躺枪
阅读(70)
评论(0)
推荐(0)
编辑
2018年9月18日
返回上一页
摘要: <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
阅读全文
posted @ 2018-09-18 14:43 躺枪
阅读(50)
评论(0)
推荐(0)
编辑
2018年7月11日
备注悬浮
摘要: <td title="{$vo.note}"> {$vo.note|mb_strimwidth=0,21,'...','utf-8'} </td>
阅读全文
posted @ 2018-07-11 17:04 躺枪
阅读(65)
评论(0)
推荐(0)
编辑
2018年6月29日
指定年月月初月末时间戳
摘要: $month = I('month'); if(empty($month)){//没有设置月份,取当月数据 $month = date('Y-m'); } $year = gmdate("Y", strtotime($month)); $month_start = strtotime($month)
阅读全文
posted @ 2018-06-29 17:12 躺枪
阅读(183)
评论(0)
推荐(0)
编辑
1
2
3
4
5
···
7
下一页