0
我正在讀的應用程序的源代碼,我看到這行代碼:這個代碼是如何工作的.html(_模板()({})。)
$('#div1').html(_.template($('#div2').html())({Id: app.Id(id)}));
我能理解$( '#div1')。html(),但爲什麼這行代碼可以傳遞兩個()代碼塊?它看起來不正確。 .html()可以帶兩個()塊嗎?
.html(_.template()())
;