formData()的参数
时间: 2024-04-23 10:28:40 浏览: 66
回答: FormData()的参数可以是一个表单元素,用于初始化一个FormData对象,也可以不传入任何参数,直接创建一个空的FormData对象。如果传入一个表单元素作为参数,FormData对象会根据表单元素中的字段自动填充数据。\[2\]如果不传入参数,可以通过append()方法来添加数据。\[2\]
#### 引用[.reference_title]
- *1* [FormData详解](https://blog.csdn.net/weixin_46058921/article/details/122387516)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [new FormData() - FormData对象的作用及用法](https://blog.csdn.net/AlbenXie/article/details/100103709)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文