您可以在page.xml添加新的块
<block type="core/text_list" name="before_body_end" as="before_body_end" translate="label">
<block type="page/html_head" name="footerjscss" as="footerjscss" after="-" template="page/html/footerjscss.phtml"/>
</block>
再加入JS & CSS文件中任何layout.xml
<reference name="footerjscss">
<action method="addItem"><type>skin_js</type><name>js/slideshow.js</name></action>
<action method="addItem"><type>skin_css</type><name>css/madisonisland.css</name><params/><if/></action>
</reference>
创建页面文件的一个.phtml/html/footerjscss.phtml并添加以下内容
<?php echo $this->getCssJsHtml() ?>
现在叫块在页面模板“3columns.phtml”等,您将需要输出该块标记之前:
<?php echo $this->getChildHtml('before_body_end') ?>
参考代码在这里:http://blog.rahuldadhich.com/magento-load-css-js-footer/
“,但它给我回一个错误“,至极错误? – plalx