attr 修改IMG src

jQuery修改img的src的方法:
$("#img_id").attr("src","new_src");

定义和用法

attr() 方法设置或返回被选元素的属性值。

根据该方法不同的参数,其工作方式也有所差异。

https://www.tongbiao.xyz/
原文地址:https://www.cnblogs.com/tongbiao/p/6445562.html