Hi there, interesting article, thanks for sharing!
Did you know that there is a native object to handle url queries in JavaScript (Browser)?
"use strict"; const urlSearchParams = new URLSearchParams(); urlSearchParams.append("color", "yellow"); urlSearchParams.append("form", "circle"); urlSearchParams.append("keywords", "young kids playground"); console.log(urlSearchParams.toString()); // color=yellow&form=circle&keyword=young+kids+playground
Hi Amin!
Yeah, based from caniuse, IE and other Chinese browsers do not support it.
So maybe it depends on your target audience if you'll use URLSearchParams
URLSearchParams
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi there, interesting article, thanks for sharing!
Did you know that there is a native object to handle url queries in JavaScript (Browser)?
Hi Amin!
Yeah, based from caniuse, IE and other Chinese browsers do not support it.
So maybe it depends on your target audience if you'll use
URLSearchParams