Ajax-запросы


    let formData = new FormData();
    formData.append('param1', 'value1');
    fetch('', {  
        method: 'post',  
        headers: {  
          "Content-type": "application/x-www-form-urlencoded; charset=UTF-8"  
        },  
        body: formData
    }).then(function(resp) {  
        if(resp.status == 200){
            resp.text().then(function(data){  
                console.log(data);  
            });
        }
    });