JS获取标签的方法。

JS获取标签的方法。

document.getElementById("标签id")获取指定的id标签document.getElementByName("标签name属性")获取指定的name的标签如果有多个标签
JavaScript180