📜  在 javascript 代码示例中获取表单

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

代码示例1
// Build formData object.
let formData = new FormData();
formData.append('name', 'John');
formData.append('password', 'John123');

fetch("api/SampleData",
    {
        body: formData,
        method: "post"
    });