Skip to content

Commit 0969890

Browse files
Revert "[FormData] 번역 - line64(#1232)"
This reverts commit 224c5d3.
1 parent ca7dd0d commit 0969890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

5-network/02-formdata/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ From the server point of view, that looks like a usual form submission.
6161

6262
A form is technically allowed to have many fields with the same `name`, so multiple calls to `append` add more same-named fields.
6363

64-
`append` ¸Þ¼­µå À̿ܿ¡ Çʵå Ãß°¡ ½Ã »ç¿ëÇÒ ¼ö ÀÖ´Â ¸Þ¼­µå·Î `set`µµ ÀÖ½À´Ï´Ù. `set`ÀÌ `append` ¸Þ¼­µå¿Í ´Ù¸¥ Á¡Àº `set`Àº `name`°ú µ¿ÀÏÇÑ À̸§À» °¡Áø Çʵ带 ¸ðµÎ Á¦°ÅÇÏ°í »õ·Î¿î Çʵå Çϳª¸¦ Ãß°¡ÇÑ´Ù´Â µ¥ ÀÖ½À´Ï´Ù. µû¶ó¼­ `set` ¸Þ¼­µå¸¦ ¾²¸é `name`À» °¡Áø Çʵ尡 ´Ü ÇÑ °³¸¸ ÀÖ°Ô²û º¸ÀåÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ¿Ü¿¡ ´Ù¸¥ ±â´ÉÀº `append` ¸Þ¼­µå¿Í µ¿ÀÏÇÕ´Ï´Ù.
64+
There's also method `set`, with the same syntax as `append`. The difference is that `.set` removes all fields with the given `name`, and then appends a new field. So it makes sure there's only one field with such `name`, the rest is just like `append`:
6565

6666
- `formData.set(name, value)`,
6767
- `formData.set(name, blob, fileName)`.

0 commit comments

Comments
 (0)