$("#imgId")[0].src; //获取$("#imgId").attr('src',path); //修改
转:https://www.cnblogs.com/pengc/p/9290388.html