2021年5月18日
摘要: 1.子节点对象与子元素的区别 * childNodes 子节点 * children 子元素 关于子节点对象 * 参考 https://www.cnblogs.com/Listener-wy/p/14735166.html 2.获取父节点和父元素: * JS: * 获取父节点 * parentNod 阅读全文
posted @ 2021-05-18 19:21 文种玉 阅读(162) 评论(0) 推荐(0) 编辑
摘要: ##定义和用法 selectedIndex 返回的是下拉框当中被选中的索引下标 <html> <head> <script type="text/javascript"> function getIndex() { var x=document.getElementById("mySelect") 阅读全文
posted @ 2021-05-18 19:18 文种玉 阅读(197) 评论(0) 推荐(0) 编辑