console.log formdata

This commit is contained in:
Alexander Popov 2023-03-11 23:58:54 +03:00
parent dae70b44d1
commit 8f9ba271d9
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C

View File

@ -0,0 +1,14 @@
---
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]}`);
}
```