我在我的靜態塊中使用了{{block type="core/template" template="page/html/FILE_NAME.phtml"}}
,並且想要在主頁中使用。 在此之前,我已經在我的主頁,在主頁的「設計」部分中使用的塊我已經寫是否可以在magento塊中使用js?
<reference name="block_name">
<action method="addJs">
<script>js_name</script>
</action>
</reference>
但它不工作。任何人都可以幫我嗎?...
如果你想在塊之前使用js,你在'FILE_NAME.phtml'上面寫上 – urfusion