try {
fetchJsonp("xxx.php", {
headers: {
"Content-Type":"application/json"
},
jsonpCallbackFunction: "portraitCallBack"
})
;
let dataS = promise.json();
console.log(dataS);
dataS.then(data => {
console.log(data);
})
} catch (error) {
console.log(error)
}
I use fetchJsonp, when doing cross-domain work, but I report an error. Does fetchJsonp undefined, need to import other files? please advise