JSONP
const jsonp = (url) => {
if (!url) {
console.error("Axios.JSONP 至少需要一个url参数!");
return;
}
return new Promise((resolve, reject) => {
const JSONP = document.createElement("script");
JSONP.type = "text/javascript";
JSONP.src = `${url}`;
document.getElementsByTagName("head")[0].appendChild(JSONP);
});
};
jsonp(
"http://192.168.0.11:8079/HWCollaborationDashboard/passport/removeFreeLogin"
);