Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flayder/3fd693b9c341c92199f421e948a65f20 to your computer and use it in GitHub Desktop.
Save flayder/3fd693b9c341c92199f421e948a65f20 to your computer and use it in GitHub Desktop.
const params = new URLSearchParams();
params.append('param1', 'value1');
params.append('param2', 'value2');
axios.post('/foo', params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment