会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
微客鸟窝
公众号《微客鸟窝》笔者,目前从事web后端开发,涉及语言PHP、golang!获得美国《时代周刊》2006年度风云人物!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
下一页
2015年8月13日
include 与 Widget
摘要: include :include 引入的页面动态加载数据时,需要在当前页面中写数据加载,而不是只在引入的页面中就可以了;
阅读全文
posted @ 2015-08-13 13:46 微客鸟窝
阅读(208)
评论(0)
推荐(0)
2015年8月12日
百度编辑器
摘要: 又一编辑神器-百度编辑器-Ueditor(Lionden 转载说明) 前段时间发表过一篇关于“KindEditor在JSP中使用”的博文。这几天在沈阳东软进行JavaWeb方面的实习工作,在一个CMS系统的后台和博客板块中又要用到文本编辑器,突然发现了这个——百度编辑器(官网http://ue...
阅读全文
posted @ 2015-08-12 10:21 微客鸟窝
阅读(333)
评论(0)
推荐(0)
2015年8月11日
Thinkphp 分页应用
摘要: $Table = M('Table'); $count = $Table ->where()->count(); $Page = new \Think\Page($count,10); //自定义分页样式 $Page -> setConfig('next','下一页'); $Page ...
阅读全文
posted @ 2015-08-11 18:39 微客鸟窝
阅读(130)
评论(0)
推荐(0)
U 跳转中加入变量参数的写法
摘要: href="{:U('Message/news?id='.$vo['messageid'].'')}"就是在U方法里如果参数是变量就用 '.$i.'代替 {$i}$o['id'],'type'=>'property'))}" class="btnGreen">详细通过array数组来传值
阅读全文
posted @ 2015-08-11 16:19 微客鸟窝
阅读(263)
评论(0)
推荐(0)
2015年8月8日
js 时间戳转为日期
摘要: 1 function time(){ //页面时间戳转换成时间2 $(".time").each(function(){3 var time = $(this).text();4 var times = new Date(parseInt(time)*10...
阅读全文
posted @ 2015-08-08 10:17 微客鸟窝
阅读(145)
评论(0)
推荐(0)
2015年8月6日
thinkphp 事物回滚
摘要: 1 $m=D('YourModel');//或者是M(); 2 $m2=D('YouModel2'); 3 $m->startTrans();//在第一个模型里启用就可以了,或者第二个也行 4 $result=$m->where('删除条件')->delete(); 5 $result2=$m2-...
阅读全文
posted @ 2015-08-06 13:24 微客鸟窝
阅读(170)
评论(0)
推荐(0)
2015年8月5日
文字超出部分以省略号隐藏
摘要: style="float:left;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis"
阅读全文
posted @ 2015-08-05 14:16 微客鸟窝
阅读(175)
评论(0)
推荐(0)
2015年8月4日
js倒计时
摘要: $(window).load(function(){ var t = setInterval(function(){ var n = Date.parse(new Date())/1...
阅读全文
posted @ 2015-08-04 11:35 微客鸟窝
阅读(155)
评论(0)
推荐(0)
2015年8月1日
js 日期转为时间戳
摘要: 在js中,将一个字符转化成Date型也不是什么难事:var str = '2013-08-30'; // 日期字符串str = str.replace(/-/g,'/'); // 将-替换成/,因为下面这个构造函数只支持/分隔的日期字符串var date = new Date(str); // 构造...
阅读全文
posted @ 2015-08-01 13:26 微客鸟窝
阅读(247)
评论(0)
推荐(0)
2015年7月30日
jquery 获取url地址参数
摘要: 1 var url = document.URL; 2 var a = url.split("="); 3 4 if(a[1]){ 5 return options.fn(this); 6 }else{ 7 return options.inverse(this); 8 } $(function(){ if(getUrlParam...
阅读全文
posted @ 2015-07-30 11:33 微客鸟窝
阅读(200)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
下一页
公告
/* 看板娘 */