2016年11月29日
摘要: [D] 阅读全文
posted @ 2016-11-29 13:18 王庆东mas 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.format = function(format) { //author: meizz let o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "H+": this.getHours(), //小时 "m+": this.getMinutes(), /... 阅读全文
posted @ 2016-11-29 13:17 王庆东mas 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 在处理super的super时候遇到了死循环: this.super-->this.proto.constructor(){this.super}-->this.proto.constructor。。。 后来直接用了上面代码中的办法,不想整得太复杂(就是不会。。。) 然后不想污染Function,只 阅读全文
posted @ 2016-11-29 13:16 王庆东mas 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 通过在div中加入表格,实现大图轮播,代码如下: 整体的思路: 1。在div中嵌入表格,设置div的宽和高,设置成图片大小,确定其位置,将图片插入表格,超出div部分隐藏 2.在js中定义一个变量接受left的值,并赋值为0px,即初始值 3设置函数 function a() {在函数中将接收到的值 阅读全文
posted @ 2016-11-29 13:15 王庆东mas 阅读(269) 评论(0) 推荐(0) 编辑