Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的产品列表页面中有一个元素,我想隐藏它,直到文档的其余部分完成加载。(这是一个带有“hideme”类的列表项) JS 解决方案对我不起作用,所以我正在寻找一种脚本方法,它应该在 Magento 中工作得更好。任何帮助将不胜感激。谢谢!
如果你想在加载 DOM 后在客户端创建一些东西,你应该尝试这样: document.observe("dom:loaded", function() { // 最初隐藏选项卡内容的所有容器 $$('div .tabcontent').invoke('hide'); });
更像是 jQuery(document).ready();
问候。