标签: javascript
为什么变量不增加?
function Ticker() { this._i = 0 } Ticker.prototype = { tick: function() { console.log(this._i++); } } var ticker = new Ticker(); setInterval(ticker.tick, 1000);
_是什么意思?
_