Home >Web Front-end >JS Tutorial >Usage examples of wrapInner() method in jQuery_jquery
The example in this article describes the usage of wrapInner() method in jQuery. Share it with everyone for your reference. The specific analysis is as follows:
This method wraps the matching element content with the specified HTML content or element.
Grammar 1:
Wrap the content of the matching element with the specified DOM element.
实例:
语法二:
用函数返回用于包裹匹配元素内容的元素。
语法三:
用html标记代码包裹匹配元素的内容。
实例:
希望本文所述对大家的jQuery程序设计有所帮助。
本文转自:蚂蚁部落http://www.softwhy.com/