好风快疯了今天…………

来源:互联网 发布:木木三淘宝店扒皮 编辑:程序博客网 时间:2024/06/05 03:22

最近作的项目全是脚本,今天出了一个怪问题:

dojo.dcSyt.MapInfo =function(picContainerIds,containerId,xxdContainerId,xxdInfoContainer){
   //设置初始时展示的图片是小图。
   this.currentImage=this.MIDDLE_PIC;
  
   //这里设置小图和中图的容器Id,并存入map中
   this.containerMap=new dojo.collections.Dictionary();
   this.containerMap.add(this.SMALL_PIC,picContainerIds[0]);
   this.containerMap.add(this.MIDDLE_PIC,picContainerIds[1]);
  
   //此数据表示底图所在的容器的Id
   this.containerId=containerId;

 this.xxdInfoContainer=xxdInfoContainer;

在使用的时候,总是提示 this.xxdInfoContainer没有定义,试过了很多方法,比如清缓存阿,改变变量的名字啊,甚至重新部署之后,这个错误依旧出现,郁闷死了。

最后,掉换this.containerId=containerId;

 this.xxdInfoContainer=xxdInfoContainer;的位置,结果可以找到了,在换回原来的顺序,也可以了。

真想撞墙去…………。

脚本是好东西,但编写、调试起来太麻烦。

半个多小时白费了…………

这种问题怎样避免或减少阿,俺现在还不明白为什么,用的是eclipse+myeclipse5,难道是D版的问题??还是开发机器的问题?