手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >prototype Element学习笔记(Element篇三)
prototype Element学习笔记(Element篇三)
摘要:一、筛选类函数ancestors、recursivelyCollect、descendants、firstDescendant、immedi...

一、筛选类函数

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

基本上就是这么几类了。不过,关于位置类函数,只有取,没有设置的,功能不完善啊。这里面的查找类函数的用法文档中也没有尽言,关键是怎么写选择符

【prototype Element学习笔记(Element篇三)】相关文章:

prototype 1.5 & scriptaculous 1.6.1 学习笔记

浏览器检测JS代码(兼容目前各大主流浏览器)

简介JavaScript中Math.LOG10E属性的使用

一个特帅的展示图片的js+css

document.getElementById的一些细节

浅析JavaScript中的事件机制

JavaScript动态添加style节点的方法

AngularJS学习笔记之ng-options指令

在JavaScript中使用JSON数据

详解Wondows下Node.js使用MongoDB的环境配置

精品推荐
分类导航