摘要: int 整型 最大长度为10 十亿级别 tinyint 类型长度最大为5 一万级别 double 类型实际长度为定义长度加2 char 定长字符 最大长度为14 varchar 变长字符 很长 支持中文 时间戳 int 10 阅读全文
posted @ 2019-01-02 17:02 躺枪 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: //轮播图 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) 编辑
摘要: $(".me-search-input").keyup(function (e) { if (e.keyCode 13) { $("#search").click(); return false; } }); 阅读全文
posted @ 2018-11-27 16:41 躺枪 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 用addAll的时候字段不能为null if(is_null($v['path'])) $add_data[$k]['path'] = ''; 阅读全文
posted @ 2018-11-01 15:03 躺枪 阅读(367) 评论(0) 推荐(0) 编辑
摘要: <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) 编辑
摘要: $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) 编辑
摘要: <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button> 阅读全文
posted @ 2018-09-18 14:43 躺枪 阅读(50) 评论(0) 推荐(0) 编辑
摘要: <td title="{$vo.note}"> {$vo.note|mb_strimwidth=0,21,'...','utf-8'} </td> 阅读全文
posted @ 2018-07-11 17:04 躺枪 阅读(65) 评论(0) 推荐(0) 编辑
摘要: $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 躺枪 阅读(182) 评论(0) 推荐(0) 编辑