Skip to content

使用 FormData

NOTE

TODO:本文档为存根

常见的技巧是使用Object.fromEntries将整个 formData 转换为对象:

jsx
const data = Object.fromEntries(await request.formData());
data.songTitle;
data.lyrics;
const data = Object.fromEntries(await request.formData());
data.songTitle;
data.lyrics;