dojo.require

dojo.require("dojo.parser");//一定要放前面,不然dijit.dijit-all会报错
              dojo.require("dojo.dnd.Moveable");
              dojo.require("dojo.dnd.move");
              dojo.require("dijit.dijit");
              dojo.require("dijit.dijit-all");

 

 

 dojo.style(card.id,{
                        position: "absolute",
                        //top:(0+i*5)+"px",
                       // left:(0+i*5)+"px",
                        top:"0px",//不加这个就拖不动
                        left:"0px",//不加这个就拖不动
                        background:"url("+imgURL+") no-repeat scroll 0 0",
                        width:"104px",
                        height:"144px",
                        padding:"0px 0px",
                        margin:"0px 0px",
                        zIndex:""+z
                    });

你可能感兴趣的:(dojo)