event.stopPropagation()//阻止冒泡
obj.attachEvent("on"+e,fun);//ie事件
attachEventListen(obj,"click",fun);
判断是否属于父类
function Person(){};
var p =new Person();
console.log(p instanceof Person);//true
event.stopPropagation()//阻止冒泡
obj.attachEvent("on"+e,fun);//ie事件
attachEventListen(obj,"click",fun);
判断是否属于父类
function Person(){};
var p =new Person();
console.log(p instanceof Person);//true
本文标题:es5笔记
本文链接:https://www.haomeiwen.com/subject/tcavqftx.html
网友评论