URLSearchParams in JavaScript - Constructing Query Strings

preview_player
Показать описание
The very convenient URLSearchParams object within JavaScript lets you easily work with query strings - it provides methods to add, remove and retrieve key value pairs and most importantly, extract an encoded query string for further use.

This object is a relief for traditional JavaScript developers who know the pain of using regular expressions to extract query string data or manual string construction to create a query string. URLSearchParams does all this for you through its very helpful methods.

Support me on Patreon:

For your reference, check this out:

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!
Рекомендации по теме
Комментарии
Автор

This is still a high-quality video 3 years later. Great content.

errol
Автор

Excellent video. Clear, helpful, and efficient. Thank you!

giaotran
Автор

nice and clear explanation, helpful to understand the main methods))

АнастасияШелухина-зе
Автор

u r amazing dude... i've had a problem, which i tried to solve a few hours and then w found you <3

jadranko
Автор

Great tutorial, well explained and demonstrated. Well done

mrjebbar
Автор

Nice video. PS: Please, can you use a dark theme for the tutorials? It is a lot more eye-friendly.

Vagelis_Prokopiou
Автор

May I have a link to the follow up video, please?

luisquinones
Автор

okay.. soo..
okay.. soo..
okay.. soo..
okay.. soo..
okay.. soo..
okay.. soo..
okay..


Great videos btw!

deeprony
Автор

Nice video man. I still don't get why you'd need URLSearchParams to construct a query string when you can just use a template literal one liner. Seems like more work for no extra benefit

keifer
Автор

Can I use this In nodejs as like body-parser

rajashekhar
Автор

QUESTION to all of you WIX -JS- CODERS.
I have a website with a database ( work in progress using WIX ). I want my customers to come to the particular page with the DB and I want them to be able to enter THEIR DATA ( INFO 1, INFO 2, INFO 3, ... INFO 10 ) and part of the data they enter into the form is Their email address and Their own password.
When they want to ever retrieve their own data I want them to have to Search Query their email and their password and if the email and password they enter matches to their own only then will they be able to retrieve Their Own Fields of Data ( INFO 1, through INFO 10 ).
I do not want them to retrieve anyone else's data when they enter their own email and password. ( EXAMPLE: say I have 5 or 5000 customers and each one enters data into this particular database. When Customer #7 enters their own email and password they return only they data in their dataset that they entered and they do not retrieve all 5000 other peoples data. ( DOES THAT MAKE SENSE ??) -

williamjamesrapp
Автор

I'm cursed, copied code 1:1, nothing works

not_yourbusiness
Автор

I've tried this.Doesn't work at all. Nothing writes to the html document.

vernthornblad
welcome to shbcf.ru