Angular. element method summary, angular. element

Source: Internet
Author: User

Angular. element method summary, angular. element

AddClass ()-Add the specified style class name for each Matching Element
After ()-insert the content specified by the parameter after each element in the matched element set as its sibling node.
Append ()-insert the parameter content at the end of each Matching Element
Attr ()-gets the attribute value of the first element in the matched element set.
Bind ()-bind an event handler to an element
Children ()-obtains the child elements of each element in the matched element set. The selector filters the child elements selectively.
Clone ()-create a deep copy of a matching Element Set
Contents ()-obtain the child elements of each element in the element set that matches the element, including the text and comment nodes.
Css ()-gets the value of the style attribute of the first element in the element set.
Data ()-store any related data on matching elements
Detach ()-Remove all matching elements from the DOM
Empty ()-Remove all child nodes matching elements from the DOM
Eq ()-reduce the set of matching elements to which of the specified Indexes
Find ()-a selector, jQuery object, or element filter is used to obtain the descendant of each element in the currently matched element set.
HasClass ()-determine whether any matching element has a given (style) class assigned
Html ()-Get the HTML content of the First Matching Element in the Set
Next ()-gets the Element Set of the Peer element next to each element in the matched element set. If a selector is provided, this element is returned only when the followed sibling element meets the selector.
On ()-bind one or more event handler functions to the selected elements
Off ()-remove an event handler
One ()-adds a handler for an element event. The handler function can be executed at most once for each event type on each element.
Parent ()-gets the parent element of each element in the matched element set. An optional selector is provided.
Prepend ()-insert the parameter content before each Matching Element (inside the element)
Prop ()-Get the property value of the first element in the Matching Element Set
Ready ()-When the DOM is ready, specify a function for execution.
Remove ()-delete the union of elements from the DOM. (Events and jQuery data on the element are removed at the same time .)
RemoveAttr ()-removes an attribute from each element in the matched element set)
RemoveClass ()-removes one, multiple, or all of the matching elements from the set.
RemoveData ()-Remove bound data from the element
ReplaceWith ()-replace all matched elements in the set with the provided content and return the set of deleted elements
Text ()-Get the merged text of each element in the matched element set, including their descendant
ToggleClass ()-adding or deleting one or more style classes on each element in the matched element set depends on whether the style class exists or the value switches to the attribute. That is, if there is (does not exist), delete (ADD) a class
TriggerHandler ()-execute all the handlers appended to the element for an event
Unbind ()-delete a previously appended event handler from the element
Val ()-Get the current value of the first element in the matched element set
Wrap ()-add an html element to the outer package of each Matching Element

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.