【发布时间】:2013-02-02 13:12:15
【问题描述】:
我有以下布局 xml
<reference name="content">
<block type="gate/paycheckout" name="payair.gate.paycheckout" before="-" template="gate/checkout.phtml"/>
<block type="gate/paymentjs" name="payair.gate.paymentjs" />
</reference>
我有一个块,我通过它调用 payment.phtml 上的 javascript 及其工作,但我想调用 Magento addJs 操作方法以在 payment.phtml 页面上动态添加 javascript,而不是通过调用块。我该怎么做?
【问题讨论】: