jQuery: What's the difference between after() and insertAfter()

后端 未结 11 683
孤街浪徒
孤街浪徒 2021-01-31 07:42

jQuery has an .after() method, and also an .insertAfter() method.

What\'s the difference between them? I think I can use .after()

11条回答
  •  天涯浪人
    2021-01-31 08:08

    after( content ) Returns: jQuery

    Insert content after each of the matched elements.

    insertAfter( selector ) Returns: jQuery

    Insert all of the matched elements after another, specified, set of elements.

提交回复
热议问题