上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: include :include 引入的页面动态加载数据时,需要在当前页面中写数据加载,而不是只在引入的页面中就可以了; 阅读全文
posted @ 2015-08-13 13:46 微客鸟窝 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 又一编辑神器-百度编辑器-Ueditor(Lionden 转载说明) 前段时间发表过一篇关于“KindEditor在JSP中使用”的博文。这几天在沈阳东软进行JavaWeb方面的实习工作,在一个CMS系统的后台和博客板块中又要用到文本编辑器,突然发现了这个——百度编辑器(官网http://ue... 阅读全文
posted @ 2015-08-12 10:21 微客鸟窝 阅读(307) 评论(0) 推荐(0) 编辑
摘要: $Table = M('Table'); $count = $Table ->where()->count(); $Page = new \Think\Page($count,10); //自定义分页样式 $Page -> setConfig('next','下一页'); $Page ... 阅读全文
posted @ 2015-08-11 18:39 微客鸟窝 阅读(127) 评论(0) 推荐(0) 编辑
摘要: href="{:U('Message/news?id='.$vo['messageid'].'')}"就是在U方法里如果参数是变量就用 '.$i.'代替 {$i}$o['id'],'type'=>'property'))}" class="btnGreen">详细通过array数组来传值 阅读全文
posted @ 2015-08-11 16:19 微客鸟窝 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 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 微客鸟窝 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 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 微客鸟窝 阅读(162) 评论(0) 推荐(0) 编辑
摘要: style="float:left;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis" 阅读全文
posted @ 2015-08-05 14:16 微客鸟窝 阅读(167) 评论(0) 推荐(0) 编辑
摘要: $(window).load(function(){ var t = setInterval(function(){ var n = Date.parse(new Date())/1... 阅读全文
posted @ 2015-08-04 11:35 微客鸟窝 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 在js中,将一个字符转化成Date型也不是什么难事:var str = '2013-08-30'; // 日期字符串str = str.replace(/-/g,'/'); // 将-替换成/,因为下面这个构造函数只支持/分隔的日期字符串var date = new Date(str); // 构造... 阅读全文
posted @ 2015-08-01 13:26 微客鸟窝 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 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 微客鸟窝 阅读(194) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页
/* 看板娘 */