2个特殊的方法
抓图片和表单
<img src="./7.25/static/img/sxdek.jpg" alt=""> <img src="./7.25/static/img/sxdyk.jpg" alt=""> <img src="./7.25/static/img/sxdsk.jpg" alt=""> <form action="" name="user"></form> <script> var img = document***ages[1]; console.log(img); var aaa=document.forms['user']; console.log(aaa);
点击 "运行实例" 按钮查看在线实例