在浏览器上,javascript和html元素是密不可分的, 当javascript获得了一个html元素后, 该元素随即变为了一个javascript对象,我们可以通过 对象.属性 来动态修改元素的属性值,几乎所有的html属性,都可以通过 javascript对象.属性名访问,修改。