摘要:
var Client = { viewportWidth: function() { return self.innerWidth || (document.documentElement.clientWidth || document.body.clientWidth); }, viewportHeight: function() { return self.innerHeight || (document.documentElement.clientHeight || document.body.clientHeight); }, viewportSize: function() { re 阅读全文
摘要:
面试80%会被问到的问题Array.prototype.delRepeat = function () { var newArray = []; var provisionalTable = {}; for (var i = 0, item; (item = this[i]) != null; i++) { if (!provisionalTable[item]) { newArray.push(item); provisionalTable[item] = true; } } ret... 阅读全文