jQuery - ユニバーサルセレクタの例

jQuery –ユニバーサル*セレクターの例

universal *セレクターは、すべての要素、すべてを選択するために使用されます。

  1. $(‘*’): selects all elements in the document.

  2. $(‘div > *’): selects all elements that are children of a

    element.

一般に、ユニバーサルのみを使用することは意味がありませんでした。少なくともユースケースは考えられません。 ただし、常に他の要素と組み合わせて新しいカスタムセレクター式を形成するために使用されます。

jQueryの例

jQueryユニバーサル*セレクターの使用方法を示す簡単な例。



jQuery universal example








jQuery universal example

This is div-class1
This is div-class1
This is div-class3