通過Github上的官方代碼存儲庫閱讀熱門代碼時,https://github.com/spree/spree。在演示網站的主載入頁面上,我忍不住注意到一個奇怪的(至少是我第一次看到它)使用函數「yield」,如在https://github.com/spree/spree/blob/master/core/app/views/layouts/spree_application.html.erbSpree,Ruby On Rails。關於使用「收益率」功能的問題
正文中的未命名的良率頁面讓我很感興趣,什麼自動使得「產量」下頁的內容: https://github.com/spree/spree/blob/master/core/app/views/shared/_products.html.erb
換句話說什麼,以便在使用一個不知名的產量將呈現什麼決定。
任何澄清將不勝感激。
希望有所澄清諧音。如果不只是評論。 – Zimbabao 2011-03-20 05:10:28
非常好!謝謝 – mabounassif 2011-03-20 05:12:28