1. 首页
  2. 数据库
  3. 其它
  4. javascript引用对象的方法代码

javascript引用对象的方法代码

上传者: 2021-01-30 11:06:20上传 PDF文件 38.93KB 热度 21次
同一页面内的引用方法: 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
下载地址
用户评论