10 2013 档案

摘要:var myDate = new Date(); myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); //获取完整的年份(4位,1970-????) myDate.getMonth(); //获取当前月份(0-11,0代表1月) myDate.getDate(); //获取当前日(1-31) myDate.getDay(); //获取当前星期X(0-6,0代表星期天) myDate.getTime(); ... 阅读全文
posted @ 2013-10-16 14:02 程序员-初学者 阅读(1327) 评论(0) 推荐(0)
摘要:1 //扩展Date的format方法 2 Date.prototype.format = function (format) { 3 var o = { 4 "M+": this.getMonth() + 1, 5 "d+": this.getDate(), 6 "h+": this.getHours(), 7 "m+": this.getMinutes(), 8 "s+": this.getSeconds(), 9 "q+": Math.floor((this.getMo 阅读全文
posted @ 2013-10-16 13:55 程序员-初学者 阅读(403) 评论(0) 推荐(0)
摘要:/* * @author yubo * @time 2013-10-11 * 这个插件式基于bootstrap的分页样式写成的分页功能,至于样式看bootstrap中文网 * http://v3.bootcss.com/components/#pagination *//* * 功能说明,这个版本里面只能是做一个简单的分页,更多功能后续再加 * 参数说明: * current_page:当前页面,1,2,3,4···· * count_page:总页数,10,20````` * before_count:前面显示几个: * after_count:后面显 阅读全文
posted @ 2013-10-12 13:57 程序员-初学者 阅读(197) 评论(0) 推荐(0)