javascript引用对象的方法代码

zhojie79710 19 0 PDF 2021-01-30 11:01:20

同一页面内的引用方法: 1、使用id: link1.href 2、使用name: document.all.link1.href 3、使用sourseIndex: document.all(4).href //注意,前面还有HTML、HEAD、TITLE和BODY,所以是4 4、使用链接集合: document.anchors(0).href //全部的集合有all、anchors、applets、areas、attributes、behaviorUrns、bookmarks、 boundElements、cells、childNodes、children、controlRange、eleme

用户评论
请输入评论内容
评分:
暂无评论