Blog/content/posts/2023/javascript/debug-formdata.md

15 lines
322 B
Markdown
Raw Normal View History

2023-03-11 23:58:54 +03:00
---
title: "🗄️ Отладка FormData в JavaScript"
date: 2023-03-11T23:58:00+03:00
draft: false
tags: [tips, javascript]
---
Посмотреть содержание данных формы (`new FormData()`)
```javascript
for (let pair of formData.entries()) {
console.log(`${pair[0]}: ${pair[1]}`);
}
```