$(".jieshao img").each(function (i) { $(this).attr("src", "manager/" + $(this).attr("src")); }); View Code 转载于:https://www.cnblogs.com/wrld/p/9298360.html