我这里用的遍历模式
<script type="javascript"> window.onload = function () { $("img").each(function () { var str = $(this).attr("src").replace("//www.freetechs.cn", "//www.baidu.com"); $(this).attr("src", str); }); } </script>
我这里用的遍历模式
<script type="javascript"> window.onload = function () { $("img").each(function () { var str = $(this).attr("src").replace("//www.freetechs.cn", "//www.baidu.com"); $(this).attr("src", str); }); } </script>