08 2015 档案
摘要:var tag = []; $('.deltag').each(function(){ if($(this).attr("checked")== 'checked'){ tag.push($(this).attr('value'));...
阅读全文
摘要:document.activeElement 方法:if(document.activeElement.id="textbox1") { }
阅读全文
摘要:1.提交序列化表单+参数: var a = $.param({'address':address,'delivity':delivity,'payment':payment}) + '&' + $('#card_form').serialize();2.提交多个序列化表单: var form1 ...
阅读全文
摘要:include :include 引入的页面动态加载数据时,需要在当前页面中写数据加载,而不是只在引入的页面中就可以了;
阅读全文
摘要:又一编辑神器-百度编辑器-Ueditor(Lionden 转载说明) 前段时间发表过一篇关于“KindEditor在JSP中使用”的博文。这几天在沈阳东软进行JavaWeb方面的实习工作,在一个CMS系统的后台和博客板块中又要用到文本编辑器,突然发现了这个——百度编辑器(官网http://ue...
阅读全文
摘要:$Table = M('Table'); $count = $Table ->where()->count(); $Page = new \Think\Page($count,10); //自定义分页样式 $Page -> setConfig('next','下一页'); $Page ...
阅读全文
摘要:href="{:U('Message/news?id='.$vo['messageid'].'')}"就是在U方法里如果参数是变量就用 '.$i.'代替 {$i}$o['id'],'type'=>'property'))}" class="btnGreen">详细通过array数组来传值
阅读全文
摘要:1 function time(){ //页面时间戳转换成时间2 $(".time").each(function(){3 var time = $(this).text();4 var times = new Date(parseInt(time)*10...
阅读全文
摘要:1 $m=D('YourModel');//或者是M(); 2 $m2=D('YouModel2'); 3 $m->startTrans();//在第一个模型里启用就可以了,或者第二个也行 4 $result=$m->where('删除条件')->delete(); 5 $result2=$m2-...
阅读全文
摘要:style="float:left;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis"
阅读全文
摘要:$(window).load(function(){ var t = setInterval(function(){ var n = Date.parse(new Date())/1...
阅读全文
摘要:在js中,将一个字符转化成Date型也不是什么难事:var str = '2013-08-30'; // 日期字符串str = str.replace(/-/g,'/'); // 将-替换成/,因为下面这个构造函数只支持/分隔的日期字符串var date = new Date(str); // 构造...
阅读全文

浙公网安备 33010602011771号