Тёмный

Sending JSON data with the Fetch API - JavaScript Tutorial 

dcode
Подписаться 135 тыс.
Просмотров 21 тыс.
50% 1

In this video I'll show you how to post JSON data with the Fetch API. Fetch makes it super easy to do this and you can use whatever server-side language you like such as Node.js, Python, Java or PHP.
Support me on Patreon:
/ dcode - with enough funding I plan to develop a website of some sort with a new developer experience!
For your reference, check this out:
developer.mozi...
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@bjornleonhenry9750
@bjornleonhenry9750 4 года назад
damn you have awesome videos, after watching maybe one hour of your tutorials have clarified many confusing new JS feature and completely help me fully understand the whole concepts.. now only a few lines of code are needed to accomplish the same results as hundreds of lines previously done for my older projects when making asynchronous functions this new fetch api really makes everything so much easier and more clean...
@dcode-software
@dcode-software 4 года назад
Hey mate, I saw some of your previous comments also. You're very welcome! Let me know if you want to cover anything else 😁
@pierrelorand6703
@pierrelorand6703 4 года назад
i tried the method but there one thing that i don't understand. why the page receive.php show the value NULL when we var_dump($data)?
@Heydrannn
@Heydrannn 2 года назад
ty for the help. u are amazing man
@wilhelmteologo7984
@wilhelmteologo7984 3 года назад
you're a life saver my friend!
@benjaminmq2013
@benjaminmq2013 3 года назад
Thank you very much! you helped me a lot!
@adrianoqwe32
@adrianoqwe32 4 года назад
Thanks! I think isn't possible to be more objective then it.
@webosm6494
@webosm6494 4 года назад
Why are there two then() used. Could you not do console.log(response.text()) in the first then, and eliminate the second then?
@Asimz
@Asimz 4 года назад
I think its because the .text() is needed to handle the response in this example and returns another promise
@okekunleoluwatobiloba9184
@okekunleoluwatobiloba9184 4 года назад
hi dcode thanks but i've been trying to send a signup form via json and its failing
@aparnanaik8181
@aparnanaik8181 3 года назад
Hey were you able to solve this? How did you do it?
Далее
1.4: JSON - Working with Data and APIs in JavaScript
16:22
Day 2 | IEM Rio 2024 | Playoffs | КРNВОЙ ЭФИР
6:11:51
Flipping Robot vs Heavier And Heavier Objects
00:34
Просмотров 33 млн
The JSON API Spec
57:47
Просмотров 23 тыс.
Storing Objects with Local Storage in JavaScript
6:58
Просмотров 170 тыс.
JSON and AJAX Tutorial: With Real Examples
40:45
Просмотров 1,8 млн
POST Form Data as JSON with Fetch API in JavaScript
9:25
Asynchronous JavaScript Tutorial #9 - The Fetch API
7:28
How to FETCH data from an API using JavaScript ↩️
14:17
JSON Crash Course
24:49
Просмотров 1 млн
Day 2 | IEM Rio 2024 | Playoffs | КРNВОЙ ЭФИР
6:11:51