会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
py卡卡
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
13
下一页
2017年9月4日
实现页面加载完成弹出模态框
摘要: 实现页面加载完成弹出模态框 <script> $('#myModal').modal(); </script>
阅读全文
posted @ 2017-09-04 17:21 py卡卡
阅读(711)
评论(0)
推荐(0)
2017年8月21日
js 时间日期与时间戳之间转换
摘要: 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卡卡
阅读(283)
评论(0)
推荐(0)
2017年8月16日
yii2.0使用bootstrap中日期插件
摘要: 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卡卡
阅读(385)
评论(0)
推荐(0)
2017年8月14日
yii2.0 访问控制器下的方法时出现 Object Not Found! 解决办法
摘要: yii2.0 访问控制器下的方法时出现 Object Not Found! 时 可以查看(apache) 入口文件index.php 的同级有没有 .htaccess 文件 没有.htaccess文件 要添加该文件 内容: 1 RewriteEngine on 2 RewriteCond %{REQ
阅读全文
posted @ 2017-08-14 17:50 py卡卡
阅读(721)
评论(0)
推荐(0)
2017年8月11日
yii2.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卡卡
阅读(343)
评论(0)
推荐(0)
2017年8月4日
实现图片旋转的2个简单的方法
摘要: 图片展示: <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卡卡
阅读(369)
评论(0)
推荐(0)
2017年8月1日
PHP 获取本周、今日、本月的起始时间戳
摘要: 当前周的开始时间(周一)$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卡卡
阅读(1132)
评论(0)
推荐(0)
yii2.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卡卡
阅读(172)
评论(0)
推荐(0)
PHP 统计文件数和文件大小
摘要: /** * 统计文件数和文件大小 */private function getFileCacheCount($pathName){ $data = [ 'num' => 0, 'size' => 0 ]; $dir = opendir($pathName); while(false !== ($fi
阅读全文
posted @ 2017-08-01 10:40 py卡卡
阅读(158)
评论(0)
推荐(0)
简单的 通过ID获取文件名称
摘要: 模型中的方法 class 模型名{ /** * 通过ID获取文件名称 */ public static function getNameById($id) { $model = self::findOne($id); if($model) { return $model->file_name; }
阅读全文
posted @ 2017-08-01 10:34 py卡卡
阅读(240)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
13
下一页
公告