self.attachevent is not a function的解决方法