代码改变世界

阅读排行榜

jquery div 滚动条 最底部

2012-12-26 18:31 by freefei, 398 阅读, 收藏,
摘要: [js]// 滚动条一直处于最底部 function scrollToBottom() { var scrollTop = $("#main-msg")[0].scrollHeight; $("#main-msg").scrollTop(scrollTop); }[/js] 阅读全文

获取上传视频 flv 的视频长度和缩略图

2013-05-06 16:42 by freefei, 391 阅读, 收藏,
摘要: [php]&1 | grep 'Duration' | cut -d ' ' -f 4 | sed s/,//");//总长度 $ctime = date("Y-m-d H:i:s",filectime($file));//创建时间 //$duration = explode(":",$time); // $duration_in_seconds = $duration[0]*36... 阅读全文

phantomjs 前端测试工具

2017-11-28 16:28 by freefei, 385 阅读, 收藏,
摘要: http://npm.taobao.org/dist/phantomjs/ 阅读全文

centos 安装 htop

2018-07-11 17:50 by freefei, 374 阅读, 收藏,
摘要: centos install htop http://elearning.wsldp.com/pcmagazine/centos install htop/ 阅读全文

php 时间戳处理 自定义时间戳

2012-10-18 14:38 by freefei, 368 阅读, 收藏,
摘要: [php]$xbtime=date($setting['xw_end_time'],time());// 下班时间的值$kaistime=strtotime($xbtime);//开始时间转换为时间戳[/php]date(自定义时间,当前时间) 返回当前日期的自定义时间的 时间戳 阅读全文
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 42 下一页
@ https://github.com/ranmufei