fix typo in 5-network/02-formdata

This commit is contained in:
Z Yin 2021-06-22 15:46:50 -04:00 committed by GitHub
parent b19a6f0803
commit 66bad3f50b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,7 +168,7 @@ The server reads form data and the file, as if it were a regular form submission
[FormData](https://xhr.spec.whatwg.org/#interface-formdata) objects are used to capture HTML form and submit it using `fetch` or another network method.
We can either create `new FormData(form)` from an HTML form, or create a object without a form at all, and then append fields with methods:
We can either create `new FormData(form)` from an HTML form, or create an object without a form at all, and then append fields with methods:
- `formData.append(name, value)`
- `formData.append(name, blob, fileName)`