【问题标题】:How can I call or include skin JS file in magento1 CMS Page Layout?如何在 magento1 CMS 页面布局中调用或包含皮肤 JS 文件?
【发布时间】:2018-01-30 10:59:51
【问题描述】:

我尝试在 cms 页面的 Layout XML 中包含 js,但未包含 js。我想在特定的 cms 页面上应用 js。

【问题讨论】:

    标签: javascript xml magento admin magento-1.9


    【解决方案1】:

    您可以阅读这篇博文,希望它能帮助您解决问题。您还可以分享您到目前为止所做的代码。 https://alanstorm.com/magento_2_javascript_css_layout_woes/

    【讨论】:

      【解决方案2】:

      <reference name="head"> <action method="addJs"><script>megnor/carousel.min.js</script></action> </reference>

      【讨论】:

      • 能否请您添加有关此代码的更多信息。它会更有用。
      猜你喜欢
      • 1970-01-01
      • 2012-08-28
      • 1970-01-01
      • 2021-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-30
      相关资源
      最近更新 更多