Skip to content

Commit 72b68f5

Browse files
Marckel9804Violet-Bora-Lee
authored andcommitted
re_[FormData] 번역 - line64(#1232)
1 parent bc7056b commit 72b68f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

5-network/02-formdata/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
22
# FormData
33

44
이번 챕터에선 파일 여부나 추가 필드 여부 등과 상관없이 통용되는 HTML 폼(form) 전송 방법에 대해 알아보겠습니다.
@@ -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-
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`:
64+
`append` 메서드 이외에 필드 추가 시 사용할 수 있는 메서드로 `set`도 있습니다. `set``append` 메서드와 다른 점은 `set``name`과 동일한 이름을 가진 필드를 모두 제거하고 새로운 필드 하나를 추가한다는 데 있습니다. 따라서 `set` 메서드를 쓰면 `name`을 가진 필드가 단 한 개만 있게끔 보장할 수 있습니다. 이 외에 다른 기능은 `append` 메서드와 동일합니다.
6565

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

0 commit comments

Comments
 (0)