js复制到粘帖板
var Url2=document.getElementById("biao1"); Url2.select(); // 选择对象 document.execCommand("Copy");
var Url2=document.getElementById("biao1"); Url2.select(); // 选择对象 document.execCommand("Copy");
requestAnimactionFrame(function(){}) setTimeout(function(){},millisecond) setInterval(function(){},millisecond)
function doAll(){ console.log("网页可见区域宽:"+document.body.clientWidth); console.log("网页可见区域高:"+document.body.clientHeight); console.log("网页可见区域宽:"+document.body.offsetWidt…
setTimeout(function(){ alert("Hello"); }, 3000); //延时三秒后执行 //requestAnimFrame (循环执行)封装,可以兼容所有浏览器 window.requestAnimFrame = (function(){ return window.requestAnimati…
var giftArr = new Array(); function Gift(name,num){ this.name=name; this.num=num; } giftArr.sort(function(a,b){ return b.num-a.num });
1.获取选中的 $("input:checkbox[class='td-check']:checked")$(".td-check:checked")each()方法用于循环所有选中的值$("input:checkbox[class='td-check']:checked").each(function(){ console.log($($(thi…
function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(…