当前位置: 首页 > 图文教程 > 网络编程 > Javascript > prototype Element学习笔记(Element篇三)

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript 中的 prototype Element学习笔记(Element篇三)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 194 ::
收藏到网摘: n/a

上一篇把Element的所函数都梳理了一遍,下面总结一下这些函数的功能,毕竟函数太多,不分门别类一下还是没有底。 一、筛选类函数
  ancestors、recursivelyCollect、descendants、firstDescendant、immediateDescendants、previousSiblings、nextSiblings、siblings、match、up、down、previous、next、select、adjacent。
  二、增、删、改元素类函数
  insert、update、remove、replace、wrap、cleanWhitespace
  三、设置元素各种属性类函数
  visible、toggle、hidde、show、identify、readAttribute、writeAttribute、makeClipping、undoClipping
  四、样式处理类函数
  classNames、hasClassName、addClassName、removeClassName、toggleClassName、getStyle、setStyle、getOpacity、setOpacity。
  五、位置处理类函数
  getHeight、getWidth、scrollTo、getDimensions、makePositioned、undoPositioned、cumulativeOffset、positionedOffset、absolutize、relativize、cumulativeScrollOffset、getOffsetParent、viewportOffset、clonePosition。
  六、几个返回布尔型的函数
  empty、descendantOf、visible
  七、事件管理类
  fire、observe、stopObserving
  八、static函数
  extend
  基本上就是这么几类了。不过,关于位置类函数,只有取,没有设置的,功能不完善啊。这里面的查找类函数的用法文档中也没有尽言,关键是怎么写选择符