leat
leat
大多数(可能是所有)原生对象上的方法的`prototype`为`undefined`, 比如 `Array.prototype.push.prototype === undefined`. 于是这样使用会报错: ``` var obj = {0: 'a', 1: 'b', length: 2} // 原生bind var each1 = Array.prototype.forEach.bind(obj, function(item) { console.log(item) }) var each2 = Array.prototype.forEach.bindOne(obj,...
init ``` if (this.value.length > 0) { .... } + if (this.multi) { + this.multiDays = this.value.slice() + } this.render(this.year, this.month) ``` render ``` else if (this.multi) { //多选 let...