1var params = new URLSearchParams();
2params.append('param1', 'value1');
3params.append('param2', 'value2');
4axios.post('/foo', params);
5
1// JS
2axios.post(url, JSON.stringify({
3name: "this.name",
4email: "this.psswrd"
5}))
6
7// PHP
8$_POST = json_decode(array_keys($_POST)[0], true);