一.设置属性: 方式一 jQuery 代码: $("img").attr({ src: "test.jpg", alt: "Test Image" }$("img").attr({ 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交