self.attachevent is not a function的解决方法 注意原因:window对象的attachEvent方法只在IE浏览器中有效,其它浏览器不支持这个方法,所 self.attachevent