Created
May 3, 2019 19:50
-
-
Save Franckapik/af7d186a83438895eb5b7e9eb3fcd88b to your computer and use it in GitHub Desktop.
search params
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let colis = new URLSearchParams(); | |
colis.set("expediteur.pays", "FR"); | |
colis.set("expediteur.code_postal", "35440"); | |
colis.set("expediteur.ville", "Feins"); | |
colis.set("expediteur.type", "entreprise"); | |
colis.set("expediteur.adresse", "1 rue d'aubigné"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
const ex = {
'expediteur.pays' : 'FR',
'expediteur.code_postal' : '35440'
}
console.log(ex.expediteur.pays);