FormData.values()
FormData.values()
메서드는 이 객체에 포함 된 모든 value를 통과하는 iterator
를 반환합니다. value는 USVString
또는 Blob
객체입니다.
메모: 이 메서드는 웹워커(Web Workers)에서도 사용할 수 있습니다.
Syntax
formData.values();
Return value
iterator
를 반환합니다.
Example
// Create a test FormData object
var formData = new FormData();
formData.append('key1', 'value1');
formData.append('key2', 'value2');
// Display the values
for (var value of formData.values()) {
console.log(value);
}
결과는 다음과 같습니다:
value1 value2
Specifications
Specification | Status | Comment |
---|---|---|
XMLHttpRequest The definition of 'values() (as iterator<>)' in that specification. |
Living Standard | Initial definition |
Browser compatibility
BCD tables only load in the browser