上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 33 下一页
摘要: var date = new Date(); console.log(date); //Date {Wed Dec 10 2014 15:59:24 GMT+0800}date.getDay() // 3date.setDate(1);date.getDay(); // 1console... 阅读全文
posted @ 2014-12-10 16:12 刘金宇 阅读(578) 评论(0) 推荐(0) 编辑
摘要: ");}fclose ($f);?> 阅读全文
posted @ 2014-12-08 18:15 刘金宇 阅读(1118) 评论(0) 推荐(0) 编辑
摘要: hasOwnProperty:是用来判断一个对象是否有你给出名称的属性或对象。不过需要注意的是,此方法无法检查该对象的原型链中是否具有该属性,该属性必须是对象本身的一个成员。if(data.hasOwnProperty('xh')){ ....}isPrototypeOf是用来判断要检查其原型链的... 阅读全文
posted @ 2014-11-28 17:16 刘金宇 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 1、设置一二级域名共用的cookie:设置domain为一级域名,可一、二级域名共用的cookie$.cookie('f_city','北京|101010100|,锦州|101070701|',{expires: 999, path: '/',domain: 'weather.com.cn'})2、... 阅读全文
posted @ 2014-11-17 14:41 刘金宇 阅读(3802) 评论(0) 推荐(0) 编辑
摘要: 滚动加载|jquery.endless-scroll插件|使用demo 最新报道 ... 阅读全文
posted @ 2014-11-15 12:59 刘金宇 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: Maonsry+Infinite-Scroll实现滚动式分页,网上有很多,这里只说:瀑布流插件的一个基本使用,附上基本功能的demojquery.masonry的跑通demo a a a a a aa a a a a aa a a a a aa a a a a aa a a a a aa... 阅读全文
posted @ 2014-11-15 10:20 刘金宇 阅读(916) 评论(0) 推荐(0) 编辑
摘要: autoRoll_UpDown函数 function autoRoll_UpDown($domObj,speed){ //$domObj 外围容器的jQuery式元素对象 speed 滚动速度,单位毫秒 var speed = speed || 3000; //默认速度3秒 v... 阅读全文
posted @ 2014-10-30 17:01 刘金宇 阅读(295) 评论(0) 推荐(0) 编辑
摘要: function setHomepage(){ var url = window.location.href; if (document.all) { document.body.style.behavior='url(#default#homepage)'; document.... 阅读全文
posted @ 2014-10-17 11:14 刘金宇 阅读(154) 评论(0) 推荐(0) 编辑
摘要: New Document 阅读全文
posted @ 2014-10-15 15:54 刘金宇 阅读(1642) 评论(0) 推荐(0) 编辑
摘要: var formateNumArr = function(arr,defaultVal){ var a = []; $.each(arr,function(i,v){ if(!isNaN(v)){ a.push(v); }else{ a.push(defaultVal); arr[i... 阅读全文
posted @ 2014-10-14 09:02 刘金宇 阅读(171) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 33 下一页