摘要:
var lastInput = { d: "", flag: true, timeContainer:0, test: function (str) { if (str - this.d > 0) { this.flag = true; } else { this.flag = false; } t 阅读全文
摘要:
function VideoControls(option){ this.id = option.videoId; this.videoId = document.getElementsByTagName(option.videoId)[0]; this.prismplayer = option.prismplayer; this.controls = $(".con... 阅读全文
摘要:
<canvas id="canvas"></canvas><canvas id="water"></canvas><img src="" id="imgShow" alt=""/> var ca = document.getElementById("canvas");var ctx = ca.get 阅读全文
摘要:
一、 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 阅读全文
摘要:
function PullLoadDate(dom,option){ 阅读全文
摘要:
1、概述 Function.apply(obj,args)方法能接收两个参数obj:这个对象将代替Function类里this对象args:这个是数组,它将作为参数传给Function(args-->arguments) Function.call(obj,[param1[,param2[,…[,p 阅读全文
摘要:
.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; 阅读全文
摘要:
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 阅读全文
摘要:
js函数集·字符串(String) 1.声明 var myString = new String("Every good boy does fine."); var myString = "Every good boy does fine.";2.字符串连接 var myString = "Ever 阅读全文