2012-04-17 21 views

回答

4

只需通過視圖(this)作爲第三(上下文)以.each()

_.each([1], function() { 
     alert(this.el); 
}, this); 

Forked fiddle.

+3

值得注意的是,回調函數會將數組元素作爲參數。 – 2012-04-17 17:34:38