getElementById ,getElementsByName ,getElementsByTagName大概介绍,后两个是得到集合,byid只是得到单个对象 getElementById 的用法。举个例子: <a id="link1" name="link1" href=http://www.aidengfeng.com>爱登
<div id="showtext">1</div> <script type="text/javascript"> var $=function(id){return document.getElementById(id)} var ltime=5 var y function countDown(){ s=
//遍历option和添加、移除option function changeShipMethod(shipping){ var len = $("select[@name=ISHIPTYPE] option").length if(shipping.value != "CA"){ $("select[@name=ISHIPT
jq text html val html innerhtml innertext value 区别你知道么
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号