Home >
Web Front-end >
JS Tutorial >
Conversion between JavaScript objects jQuery objects and original DOM_jquery
Conversion between JavaScript objects jQuery objects and original DOM_jquery
WBOY
Release: 2016-05-16 18:09:49
Original
1004 people have browsed it
$("#test") //jQuery object $("#test")[0] //jQuery object->native DOM object $($("#test")[0]) //DOM object->jQuery object (a bit convoluted, but as long as you understand that using $() you can encapsulate the native DOM object into a jQuery object)
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