Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Webプロジェクトにエキスパンダーを使用しています
だから私は「続きを読む」がクリックされる前に見える要素を数える必要があります、誰かが私を助けることができますか?
これらの要素に「testClass」などのクラスがある場合は、それらを選択して($( ".testClass"))、繰り返し処理して(.each関数)、表示されている要素を確認します(attr( "style")またはcssを使用)。 ("display")関数)そしてそれらを数えます。このように「is」関数を使用することもできますis( ":visible")。