会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小酱油
搬新家了~
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
下一页
2018年4月21日
redis 的安装和使用
摘要: 参考资料:https://www.cnblogs.com/wangchunniu1314/p/6339416.html
阅读全文
posted @ 2018-04-21 17:41 小酱油
阅读(94)
评论(0)
推荐(0)
2018年1月16日
js 汉字正则匹配
摘要: js正则判断例子 var str666 = 'long long age'; var reg = new RegExp("[\\u4E00 \\u9FFF]+","g"); if(reg.test(str666)){ console.log("有汉字"); }else{ console.log("无
阅读全文
posted @ 2018-01-16 16:47 小酱油
阅读(4664)
评论(0)
推荐(0)
jq clone 克隆方法偶遇问题
摘要: jq clone 复制时候出现重复数据问题 今天在处理一个列表页面的时候,遇到了需要clone来解决的问题,当完成代码后,测试,发现有个奇葩问题,对同一列数据连续做clone处理时,数据成倍的被复制,百思不得其解,经过反复调试,终于找到了原因。 图中: 点击 dom 1 ,弹出克隆的数据。当点击do
阅读全文
posted @ 2018-01-16 16:45 小酱油
阅读(314)
评论(0)
推荐(0)
截取字符串加省略号
摘要: 无聊的时候也可以写着玩 function substrtext($text, $length) { if(mb_strlen($text, 'utf8') $length) return mb_substr($text, 0, $length, 'utf8').'...'; return $text
阅读全文
posted @ 2018-01-16 16:41 小酱油
阅读(314)
评论(0)
推荐(0)
瀑布流页面效果
摘要: 瀑布流页面 <!DOCTYPE html 瀑布流布局 all{ position: relative; } .box{ float: left; } .pic img{ width: 150px;/ 这里控制宽度 / height: auto; } $(window).load(function()
阅读全文
posted @ 2018-01-16 16:40 小酱油
阅读(179)
评论(0)
推荐(0)
js 函数节流 jQuery throttle/debounce
摘要: 在《JavaScript高级程序设计》一书有介绍函数节流,里面封装了这样一个函数节流函数: function throttle(method, context) { clearTimeout(methor.tId); method.tId = setTimeout(function(){ metho
阅读全文
posted @ 2018-01-16 16:39 小酱油
阅读(4082)
评论(0)
推荐(0)
手机浏览页面touch操作,解决touch事件和浏览器滚动条冲突问题;zepto,swipe事件。
摘要: 加载三个js插件 简单代码:操作一块元素的上下位移。 $(" js_showdown_show").on("swipeDown",function(){ $(".js_showdown").stop(); $(" js_showdown_show").stop(); $(this).animate(
阅读全文
posted @ 2018-01-16 16:38 小酱油
阅读(1932)
评论(0)
推荐(0)
touch 方向判断方法
摘要: touch :touchstart、touchend、touchmove $("body").on("touchstart", function(e) { e.preventDefault(); startX = e.originalEvent.changedTouches[0].pageX, st
阅读全文
posted @ 2018-01-16 16:38 小酱油
阅读(357)
评论(0)
推荐(0)
thinkPHP 导入栗子 (2)
摘要: //导入方法 public function importdata(){ $file = './a.excel'; if (!file_exists($file)) { $re['msg'] = '模板文件出错,请重新上次模板文件'; } / Include PHPExcel / require_o
阅读全文
posted @ 2018-01-16 16:37 小酱油
阅读(176)
评论(0)
推荐(0)
百度地图的使用实例-php+jq
摘要: var lists = <?php echo $scannerlist;? ; var js_getCityUrl = "{:U(MODULE_NAME.'/ScannerManager/getCity','','',true)}"; var js_getMapUrl = "{:U(MODULE_N
阅读全文
posted @ 2018-01-16 16:35 小酱油
阅读(160)
评论(0)
推荐(0)
1
2
3
4
下一页
公告
点击右上角即可分享