magento没有阅读JS目录

时间:2015-07-11 06:52:52

标签: php xml magento magento-1.8 mage

我在

中添加了js文件
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>

#define INCR(count,ARGS...) \
   if(ARGS) \
   count++; \

void main()
{
    int count =1;
    int flag =1;
    INCR(count);
    printf("count %d",count);
    INCR(count,flag); /* flag determines if the count is to be incremented or not */
    printf("count %d",count);
}

并且local.xml文件位于

/skin/frontend/default/mytheme/js

添加js的代码是

    

/app/design/frontend/default/mytheme/layout

但是,magento没有阅读上述任何文件。我不知道它是否与任何其他 <reference name="head"> <!--CSS--> <action method="addItem"><type>skin_css</type><name>css/slicknav.css</name><params/></action> <action method="addItem"><type>skin_css</type><name>css/bootstrap.css</name><params/></action> <action method="addItem"><type>skin_css</type><name>css/bootstrap-responsive.css</name><params/></action> <action method="addItem"><type>skin_css</type><name>css/product-slider.css</name><params/></action> <action method="addItem"><type>skin_css</type><name>css/fb_style.css</name><params/></action> <action method="addItem"><type>skin_css</type><name>css/flexslider.css</name><params/></action> <action method="addItem"><type>skin_css</type><name>css/jquery.selectbox.css</name><params/></action> <action method="addItem"><type>skin_css</type><name>css/jquery.bxslider.css</name><params/></action> <action method="addItem"><type>skin_css</type><name>css/styles.css</name><params/></action> <!--JS--> <action method="addJs"><script>js/jquery-2.1.4.min.js</script></action> <action method="addJs"><script>js/no-conflict.js</script></action> <action method="addJs"><script>js/bootstrap.min.js</script></action> <action method="addJs"><script>js/jquery.easing.js</script></action> <action method="addJs"><script>js/jquery.selectbox-0.2.min.js</script></action> <action method="addJs"><script>js/jquery.mousewheel.pack.js</script></action> <action method="addJs"><script>js/jquery.elastislide.js</script></action> <action method="addJs"><script>jquery.flexslider.min.js</script></action> <action method="addJs"><script>js/jquery.tagsphere.min.js</script></action> <action method="addJs"><script>js/retina-replace.js</script></action> <action method="addJs"><script>js/retina-replace.js</script></action> <action method="addJs"><script>js/js/jquery.bxslider.js</script></action> <action method="addItem"><type>js</type><name>js/html5.js</name><params/><if>lte IE 8</if></action> <action method="addItem"><type>js</type><name>js/html5.js</name><params/><if>lt IE 9</if></action> <action method="addItem"><type>js</type><name>js/jquery.bxslider.js</name><params/><if>lt IE 9</if></action> </reference> 文件或任何其他 xml 目录冲突。

任何帮助,因为我有这个项目在一两天内提交,无法弄清楚它可能是什么

1 个答案:

答案 0 :(得分:0)

试试这个结构:

<action method="addItem"><type>skin_js</type><name>js/jquery-2.1.4.min.js</name></action>