我知道我的jQuery,但很遺憾對Prototype不太瞭解。我需要使用Prototype來做一些我可以很容易地在jQuery中做的事情
$(function() {
$('#home-gallery-container').append('<a href="/images/cobra_sale.jpg" alt="" rel="lightbox-home" id="special-home" ><img src="/images/tag.png" alt="Special" /></a>');
});
我該如何在Prototype或Magento的庫中做這件事,如果增加了額外的東西。在上面的示例中
注意,我有考慮jQuery.noConflict()
等
當你知道如何時,一切都很簡單:) – 2010-03-02 13:53:06