Ajax-запросы

    fetch('', {  
        method: 'post',  
        headers: {  
          "Content-type": "application/x-www-form-urlencoded; charset=UTF-8"  
        },  
        body: 'mid='+mid+'&mp='+mp
    }).then(function(resp) {  
        if(resp.status == 200){
            resp.text().then(function(data){  
                console.log(data);  
            });
        }
    });