jQuery中使用each(callback)方法可以很方便的遍历集合,如 $("img").each(function(i){ this.src = "test" + i + ".jpg"; }); 相关文章: 2021-12-10 2021-12-10 2021-12-10 2021-12-10 2021-12-02 2022-12-23