今天后台的跟我说ajax交互用户头像接口,我想这不难做呗,刷刷刷写完了,哎图片呢,怎么回事,
这里我们前后端省略了status == 200这个判断
//图片接口
$.ajax({
type:"get",
url:"http://www.miereco.com/dashboard.php",
async:false,
data:{image:useid},
success:function(msg){
$(".head img").attr("src","http://www.miereco.com/dashboard.php?image="+useid);
console.log(msg);
},