摘要:
document.onclick=function(event){ var e=event?event:window.event; var ee=e.target||e.srcElement; alert(ee.tagName); }document.onkeydown=fun... 阅读全文
摘要:
四种算法来实现这个目的:Array.prototype.unique1 = function () { var n = []; //一个新的临时数组 for (var i = 0; i < this.length; i++) //遍历当前数组 { //如果当前数组的第i已经保存进了临时数... 阅读全文