📜  获取 gravatar 图像 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:29.660000             🧑  作者: Mango

代码示例1
const email = "youremail@gmail.com",
const size = 80; 
yourImg.src = `
    http://www.gravatar.com/avatar/${MD5(email)}.jpg?s=${size}
`;

// *You can get the md5 hash using the command `md5 -s ` on your terminal