📜  在 Javascript 代码示例中获取 mimeType

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

代码示例1
const body = {profilepic:e.target.result};
let mimeType = body.profilepic.match(/[^:]\w+\/[\w-+\d.]+(?=;|,)/)[0];