Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
class FormData | globals module | Bun BuildDocsReferenceGuidesBlogDiscord/Globals/FormDataM[Symbol.iterator]MappendMdeleteMentriesMforEachMgetMgetAllMhasMkeysMsetMvalues BuildDocsReferenceGuidesBlogDiscord /Globals/FormDataM[Symbol.iterator]MappendMdeleteMentriesMforEachMgetMgetAllMhasMkeysMsetMvalues [Symbol.iterator](): FormDataIterator[string, FormDataEntryValue]>;append(name: string,value: string | Blob): void; append(name: string,value: string): void;append(name: string,blobValue: Blob,filename?: string): void;delete(name: string): void; entries(): FormDataIterator[string, FormDataEntryValue]>; entries(): IterableIterator[string, string]>;forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void,thisArg?: any): void;get(name: string): null | FormDataEntryValue; getAll(name: string): FormDataEntryValue[]; has(name: string): boolean; keys(): FormDataIteratorstring>; keys(): IterableIteratorstring>;set(name: string,value: string | Blob): void; set(name: string,value: string): void;set(name: string,blobValue: Blob,filename?: string): void;values(): FormDataIteratorFormDataEntryValue>; values(): IterableIteratorstring>;
Search the reference...
/
class
FormDataclass FormDataReturns an array of key, value pairs for every entry in the list.
Returns a list of keys in the list.
Returns a list of values in the list.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →class FormData | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to