将jquery元素转换为html元素

问题描述:

我有一个jQuery元素,但我必须将它发送到只接受HTML元素的函数。如何将jQuery元素转换为HTML元素?

I have a jQuery element but I have to send it to a function that only accepts HTML elements. How can I convert the jQuery element to an HTML element?

尝试 myJQueryElement.get(0) myJQueryElement [0] 。 ( get()在需要负指数时最有用,例如,如 get()的文档中所述>。)

Try myJQueryElement.get(0) or myJQueryElement[0]. (get() is most useful when you need negative indices, for example, as described in the documentation for get().)