/** * Created by wang on 2016/3/23. */ //绑定操作 function bindEvent(obj,events,fn){ if (obj.addEventListener){//主流浏览器 obj.addEventListener(events,fn,false) }else { obj.attachEvent('on'+events,fn);//针对ie } } //获取class 封装个方法 function getByClass(oParent,sC…