jquery遍历指定元素下的img图片改变其路径

 $(".jieshao img").each(function (i) {


                            $(this).attr("src", "manager/" + $(this).attr("src"));
                           

                        });
View Code

猜你喜欢

转载自www.cnblogs.com/wrld/p/9298360.html