上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 1 1.将时间(2017-08-10)转换时间戳 2 var startTime = '2017-08-10'; 3 var startdate = new Date(Date.parse(startTime.replace(/-/g, "/"))); 4 startdate = startdate.getTime() / 1000; 5 alert(startdate) 6 7... 阅读全文
posted @ 2017-08-21 15:14 py卡卡 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Yii2框架引用bootstrap中日期插件yii2-date-picker的方法。 使用composer安装 日期插件 php composer.phar require "2amigos/yii2-date-picker-widget" "*" 或 composer require 2amigo 阅读全文
posted @ 2017-08-16 14:53 py卡卡 阅读(367) 评论(0) 推荐(0) 编辑
摘要: yii2.0 访问控制器下的方法时出现 Object Not Found! 时 可以查看(apache) 入口文件index.php 的同级有没有 .htaccess 文件 没有.htaccess文件 要添加该文件 内容: 1 RewriteEngine on 2 RewriteCond %{REQ 阅读全文
posted @ 2017-08-14 17:50 py卡卡 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 id;?>"> 5 6 点击按钮显示模态框 7 8 9 id;?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 10 11 12 13 x 1... 阅读全文
posted @ 2017-08-11 15:19 py卡卡 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 图片展示: <html> <body> <img src="/i/eg_tulip.jpg" alt="上海鲜花港 - 郁金香" /> </body></html> 1. 通过css3 实现图片旋转 <style>img{ -webkit-transform:rotate(90deg); }/*顺时 阅读全文
posted @ 2017-08-04 17:28 py卡卡 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 当前周的开始时间(周一)$begintime = mktime(0, 0, 0, date('m'), (date('d') - (date('w')>0 ? date('w') : 7) + 1), date('Y'));当前周的结束时间(周天)$endtime = mktime(0, 0, 0, 阅读全文
posted @ 2017-08-01 15:53 py卡卡 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function getcitytext(){ citytext = ''; $(".citylist select").each(function(){ if($(this).val()>0){ citytext += $(this) 阅读全文
posted @ 2017-08-01 14:32 py卡卡 阅读(162) 评论(0) 推荐(0) 编辑
摘要: /** * 统计文件数和文件大小 */private function getFileCacheCount($pathName){ $data = [ 'num' => 0, 'size' => 0 ]; $dir = opendir($pathName); while(false !== ($fi 阅读全文
posted @ 2017-08-01 10:40 py卡卡 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 模型中的方法 class 模型名{ /** * 通过ID获取文件名称 */ public static function getNameById($id) { $model = self::findOne($id); if($model) { return $model->file_name; } 阅读全文
posted @ 2017-08-01 10:34 py卡卡 阅读(211) 评论(0) 推荐(0) 编辑
摘要: /** * 递归删除目录中文件 * @param $pathname * @return bool */public static function delDir($pathname)//要删除的目录{ if(file_exists($pathname)) { if(is_file($pathnam 阅读全文
posted @ 2017-08-01 10:29 py卡卡 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页