Home > Web Front-end > JS Tutorial > body text

prototype Element study notes (Element Part 3)_prototype

WBOY
Release: 2016-05-16 18:59:29
Original
1069 people have browsed it

1. Filtering functions

ancestors, recursivelyCollect, descendants, firstDescendant, immediateDescendants, previousSiblings, nextSiblings, siblings, match, up, down, previous, next, select, adjacent.

2. Functions to add, delete and change elements

insert, update, remove, replace, wrap, cleanWhitespace

3. Functions to set various attributes of elements

visible, toggle, hidden, show, identify, readAttribute, writeAttribute, makeClipping, undoClipping

4. Style processing class functions

classNames, hasClassName, addClassName, removeClassName, toggleClassName, getStyle , setStyle, getOpacity, setOpacity.

5. Position processing functions

GetHeight, getWidth, scrollTo, getDimensions, makePositioned, undoPositioned, cumulativeOffset, positionedOffset, absolutize, relativize, cumulativeScrollOffset, getOffsetParent, viewportOffset, clonePosition.

6. Several functions that return Boolean type

empty, descendantOf, visible

7. Event management class

fire, observe, stopObserving

8. static function

extend

Basically these are the categories. However, regarding the position function, it can only be retrieved but not set, so the function is not perfect. The usage documentation for the search function here is not exhaustive. The key is how to write the selector.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!