摘要: var lastInput = { d: "", flag: true, timeContainer:0, test: function (str) { if (str - this.d > 0) { this.flag = true; } else { this.flag = false; } t 阅读全文
posted @ 2017-09-28 14:56 Mr.方 阅读(171) 评论(0) 推荐(0) 编辑
摘要: function VideoControls(option){ this.id = option.videoId; this.videoId = document.getElementsByTagName(option.videoId)[0]; this.prismplayer = option.prismplayer; this.controls = $(".con... 阅读全文
posted @ 2017-08-07 17:36 Mr.方 阅读(715) 评论(0) 推荐(0) 编辑
摘要: <canvas id="canvas"></canvas><canvas id="water"></canvas><img src="" id="imgShow" alt=""/> var ca = document.getElementById("canvas");var ctx = ca.get 阅读全文
posted @ 2017-07-27 11:03 Mr.方 阅读(1812) 评论(0) 推荐(0) 编辑
摘要: 一、 var arr1=new Array("1","2","3");var arr2=new Array("4","5","6");var arr3=Array.prototype.push.apply(arr1,arr2);alert(arr3); //输出的是6,而不是数组集合 (为什么输出i 阅读全文
posted @ 2017-07-21 10:56 Mr.方 阅读(182) 评论(0) 推荐(0) 编辑
摘要: function PullLoadDate(dom,option){ 阅读全文
posted @ 2017-07-20 16:42 Mr.方 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1、概述 Function.apply(obj,args)方法能接收两个参数obj:这个对象将代替Function类里this对象args:这个是数组,它将作为参数传给Function(args-->arguments) Function.call(obj,[param1[,param2[,…[,p 阅读全文
posted @ 2017-07-16 13:33 Mr.方 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-07-14 14:37 Mr.方 阅读(111) 评论(0) 推荐(0) 编辑
摘要: .toTop{ width: 2.5rem; height: 2.5rem; background-color: rgba(228,228,228,.6); position: fixed; bottom: 5rem; text-align: center; line-height: 2.5rem; 阅读全文
posted @ 2017-06-21 13:42 Mr.方 阅读(193) 评论(0) 推荐(0) 编辑
摘要: function modal(data) { this.data = data; this.each(data.el, data.data);}modal.prototype.each = function (data, html) { var sys = data.slice(0, 1); var 阅读全文
posted @ 2017-05-05 11:11 Mr.方 阅读(192) 评论(0) 推荐(0) 编辑
摘要: js函数集·字符串(String) 1.声明 var myString = new String("Every good boy does fine."); var myString = "Every good boy does fine.";2.字符串连接 var myString = "Ever 阅读全文
posted @ 2017-04-30 20:16 Mr.方 阅读(285) 评论(0) 推荐(0) 编辑