摘要:
function dragFun(id) { var Drag = document.getElementById(id); Drag.onmousedown = function(event) { var ev = event || window.event; event.stopPropagat 阅读全文
摘要:
var inter; intervatest("2019-08-22 09:12:00"); function intervatest(str) { ShowCountDown(str, 'sjtest'); inter = window.setInterval(function () { Show 阅读全文
摘要:
Date.prototype.format = function() { var s = ''; var mouth = (this.getMonth() + 1)>=10?(this.getMonth() + 1):('0'+(this.getMonth() + 1)); var day = th 阅读全文
摘要:
js 动态添加元素 删除元素逻辑 var obox=document.getElementById("box"); oadd.onclick=function(){ var odiv=document.createElement("div"); obox.appendChild(odiv); } o 阅读全文
摘要:
js两个数组去重 (对象) for (var i = 0; i < arr1.length; i++) { var flag = 1; for (var j = 0; j < arr2.length; j++) { if (arr2[j].name == arr1[i].name) { flag = 阅读全文