jQuery 获取设置图片 src 的路径

1.获取: $('#img')[0].src

2.设置:$('#img').attr("src", data.CodeUrl);


猜你喜欢

转载自www.cnblogs.com/weimingxin/p/8952454.html