diff --git a/content/posts/2023/javascript/debug-formdata.md b/content/posts/2023/javascript/debug-formdata.md new file mode 100644 index 0000000..60f7423 --- /dev/null +++ b/content/posts/2023/javascript/debug-formdata.md @@ -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]}`); +} +```