- Notifications
You must be signed in to change notification settings - Fork849
[formData] 번역#684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
[formData] 번역#684
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
# FormData | ||
이 챕터는 파일 유무, 추가 필드 등 HTML 폼(form) 전송에 관한 것입니다. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. 누락된 내용이 있습니다. | ||
짐작하셨듯이,[FormData](https://xhr.spec.whatwg.org/#interface-formdata)오브젝트는 HTML 폼(form) 데이터를 나타내는 것이 목적이고, 이것을 지원할 수 있습니다. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. object에관한 번역은 용어집을 확인해주세요. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. | ||
생성자는 다음과 같습니다. | ||
```js | ||
let formData = new FormData([form]); | ||
``` | ||
HTML `form`요소가 제공되면, 자동으로 필드를 캡처합니다. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. | ||
`FormData`의 특별한 점은,`fetch` 와 같은 네트워크 메서드이고, 대상을 하나의 본문과 같이 `FormData` 객체로 받아들일 수 있다는 점입니다. 이것은`Content-Type: multipart/form-data` 로 인코딩되어 전송됩니다. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. 쉼표 관련 모범사례 참고. 아래 쪽 내용부터 쉼표 관련해선 코멘트 달지 않겠습니다. | ||
서버 관점에서 보면, 그것은 일반적인 폼 전송처럼 보입니다. | ||
##간단한 폼 전송 | ||
먼저 간단한 폼을 보냅시다. | ||
보시다시피 거의 한 줄 입니다. | ||
```html run autorun | ||
<form id="formElem"> | ||