您好,欢迎访问一九零五行业门户网

prototype Element学习笔记(Element篇三)_prototype

一、筛选类函数
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
基本上就是这么几类了。不过,关于位置类函数,只有取,没有设置的,功能不完善啊。这里面的查找类函数的用法文档中也没有尽言,关键是怎么写选择符
其它类似信息

推荐信息