js中通过getelementsbyname访问name集合对象的方法