2006-07-18から1日間の記事一覧
【抜粋】 Object.extend(Number.prototype, { toColorPart: function() { var digits = this.toString(16); if (this < 16) return '0' + digits; return digits; }, succ: function() { return this + 1; }, times: function(iterator) { $R(0, this, true)…
bindAsEventListenerメソッド 【抜粋】 Function.prototype.bindAsEventListener = function(object) { var __method = this; return function(event) { return __method.call(object, event || window.event); } }構造は前述bindメソッドと似ています。call…