Skip to content

Instantly share code, notes, and snippets.

@coolicer coolicer/demo.js
Created Jan 30, 2018

Embed
What would you like to do?
115 get download process
(async function () {
const obj = top.window.Core['OFFL5Plug'].GetDataCtl()._set_sign();
obj.page = 1;
const searchParams = Object.keys(obj).map((key) => {
return encodeURIComponent(key) + '=' + encodeURIComponent(obj[key]);
}).join('&');
const result = await fetch('http://115.com/web/lixian/?ct=lixian&ac=task_lists', {
method: "POST",
credentials: "same-origin",
body: searchParams,
headers: {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
},
});
const text = await result.text();
console.log(text);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.