为什么需要写成obj.style[attr],而不能写成obj.style.attr?
因为传入的 attr = 'width' ,是带引号的,
即 obj.style.width === obj.style.['width'];