05 2016 档案

摘要:http://www.sunsean.com/idTabs/jquery.idTabs.min.js idTabs使用基本介绍如下: 通常的使用方法如下: Tab 1 Tab 2 Tab 3 This is tab 1. More content in tab 2. Tab 3 is always last! $(function... 阅读全文
posted @ 2016-05-25 18:17 flay 阅读(1639) 评论(0) 推荐(0)
摘要:一.使用JQuery.noConflict() 该方法的作用就是让Jquery放弃对$的所有权,将$的控制权交还给prototype.js,因为jquery.js是后引入的,所以最后拥有$控制权的是jquery。它的返回值是JQuery。当在代码中调用了该 方法以后,我们就不可以使用$来调用jquery的方法了,此时$就代表在prototype.js库中定义的$了。如下: JQuery.noC... 阅读全文
posted @ 2016-05-25 09:44 flay 阅读(1073) 评论(0) 推荐(0)
摘要:去除html标签: function del_html_tags(str) { var words = ''; words = str.replace(/]+>/g,""); return words; } 去除空格: function Trim(str,is_global) { var result; result = str.replace(/(^\s... 阅读全文
posted @ 2016-05-24 15:55 flay 阅读(2741) 评论(0) 推荐(0)
摘要:向下滚动一段距离 距离顶部距离 var scrollTop=document.documentElement.scrollTop||document.body.scrollTop; 阅读全文
posted @ 2016-05-17 14:09 flay 阅读(5174) 评论(0) 推荐(0)
摘要:jquery submit 事件 $('#form').submit(function(){ if(true){ //do return true; }else{ //do return false; } }); 阅读全文
posted @ 2016-05-17 09:25 flay 阅读(569) 评论(0) 推荐(0)
摘要:方法一: if ($("#checkbox-id")get(0).checked) { // do something } 方法二: if($('#checkbox-id').is(':checked')) { // do something } 方法三: if ($('#checkbox-id').attr('checked')) { // do something }... 阅读全文
posted @ 2016-05-17 09:15 flay 阅读(577) 评论(0) 推荐(0)
摘要:select CONVERT(u.user_name USING gbk) AS user_name from table where 1=1 order by user_name 阅读全文
posted @ 2016-05-10 14:04 flay 阅读(842) 评论(0) 推荐(0)
摘要:fn:substring 截取 fn:replace() 替换 fn:indexOf() 索引位置 fn:split 分组 ${fn:substring(fn:replace(c.ancestral,",",""),0,6)} ${fn:substring(c.industry,0,fn:index 阅读全文
posted @ 2016-05-10 13:54 flay 阅读(191) 评论(0) 推荐(0)
摘要:$(this) Jquery对象 var sex=$(this).get(0); js对象 sex.style.display='block'; 阅读全文
posted @ 2016-05-10 13:50 flay 阅读(236) 评论(0) 推荐(0)