Reload avatar after upload w/o page refresh

I have an avatar upload which works fine, the problem is that when the upload has completed I want to update the avatar (if its in the top10) directly. If the image is in the top10 it would have an id called 'chavatar'. In a nutshell: if there's an image with the id 'chavatar' on the page, reload that image's source. How would I write that in javascript, thanks for any help.

以上就是Reload avatar after upload w/o page refresh的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准