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.
スライダーが現在の画像よりも少ない画像を追加するという問題があります。私はこのようなものを使用しています:
var m = $('#main'); m.find('img:lt(3)').clone().remove().appendTo(m);
appendTo() だけを使用する場合: これは追加されません
m.find('img:lt(3)').appendTo(m);
デモ
デモのように追加されますが、前の画像を削除したいです。