js在magento中自动合并

js is merged automatically in magento

当我禁用 js 合并时,它会自动再次合并。我不知道如何。我有什么方法可以检查它为什么或如何发生?

如果 js 合并管理菜单和提交按钮不起作用。我尝试如下所述更改 main.xml 中的 js 文件顺序,但没有成功。

  1. 始终在页面上的任何其他脚本之前包含 jQuery,在必须使用 Prototype 之前。
  2. 添加jQuery.noConflict();直接调用到 jQuery 库文件的末尾。

我主要担心的是,js不应该自动合并。

我的main.xml文件

<action method="setTitle" translate="title"><title>Magento Admin</title></action>
                <action method="addJs"><script>lib/jquery/jquery-1.10.2.min.js</script></action>
                <action method="addJs"><script>lib/jquery/noconflict.js</script></action>
                <action method="addJs"><script>prototype/prototype.js</script></action>
                <action method="addItem"><type>js</type><name>extjs/fix-defer-before.js</name><params/><if/><condition>can_load_ext_js</condition></action>
                <action method="addJs"><script>prototype/window.js</script></action>
                <action method="addJs"><script>scriptaculous/builder.js</script></action>
                <action method="addJs"><script>scriptaculous/effects.js</script></action>
                <action method="addJs"><script>scriptaculous/dragdrop.js</script></action>
                <action method="addJs"><script>scriptaculous/controls.js</script></action>
                <action method="addJs"><script>scriptaculous/slider.js</script></action>
                <action method="addJs"><script>lib/ccard.js</script></action>
                <action method="addJs"><script>prototype/validation.js?version=2.5</script></action>
                <action method="addJs"><script>varien/js.js</script></action>
                <action method="addJs"><script>mage/translate.js</script></action>

                <action method="addJs"><script>mage/adminhtml/hash.js</script></action>
                <action method="addJs"><script>mage/adminhtml/events.js</script></action>
                <action method="addJs"><script>mage/adminhtml/loader.js</script></action>
                <action method="addJs"><script>mage/adminhtml/grid.js</script></action>
                <action method="addJs"><script>mage/adminhtml/tabs.js</script></action>
                <action method="addJs"><script>mage/adminhtml/form.js</script></action>
                <action method="addJs"><script>mage/adminhtml/accordion.js</script></action>
                <action method="addJs"><script>mage/adminhtml/tools.js</script></action>
                <action method="addJs"><script>mage/adminhtml/uploader.js</script></action>
                <action method="addJs"><script>mage/adminhtml/product.js</script></action>

网站purchaseglory.com

如果清除缓存不起作用,请前往管理员并:

System -> Configuration -> Advanced (Developer) 然后设置 no 合并 js 文件