Home  >  Article  >  Web Front-end  >  Conversion between JavaScript objects jQuery objects and original DOM_jquery

Conversion between JavaScript objects jQuery objects and original DOM_jquery

WBOY
WBOYOriginal
2016-05-16 18:09:49962browse

$("#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)

Statement:
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