标签:url The com fetch col log function dmi 传递方式
let postData = {a:‘b‘}; fetch(‘http://data.xxx.com/Admin/Login/login‘, { method: ‘POST‘, mode: ‘cors‘, credentials: ‘include‘, headers: { ‘Content-Type‘: ‘application/x-www-form-urlencoded‘ }, body: JSON.stringify(postData) }).then(function(response) { console.log(response); });
标签:url The com fetch col log function dmi 传递方式
原文地址:https://www.cnblogs.com/l8l8/p/9496507.html