//命名空间 var base = {}; //class base.gClass={}; //鼠标hover交互方法: 注册对象的hover的class特性以及mouseMoveIn,mouseMoveOut方法 base.gClass.hover=(function(creat){ var creat=function(obj,className,mouseoverFun,mouseleaveFun){ this.obj=obj; this.className=className; this…