Uncaught TypeError: Cannot read property 'style' of undefined
对象错误,应该是that.style=。。。这一步错误,跟前面 var self = this 一样,需要重新定义this指向。var that = this;