import-data.js 664 B

1234567891011121314151617181920212223242526272829
  1. async function main(){
  2. let fearlessUserList = await getlist();
  3. console.log("fearlessUserList count",fearlessUserList?.length)
  4. }
  5. main()
  6. async function getlist(){
  7. let response = await fetch("http://dev.fmode.cn:1337/parse/classes/fearlessUser?", {
  8. "headers": {
  9. "accept": "*/*",
  10. "accept-language": "zh-CN,zh;q=0.9",
  11. "x-parse-application-id": "dev"
  12. },
  13. "referrer": "http://127.0.0.1:4040/",
  14. "referrerPolicy": "strict-origin-when-cross-origin",
  15. "body": null,
  16. "method": "GET",
  17. "mode": "cors",
  18. "credentials": "omit"
  19. });
  20. let json = await response?.json();
  21. console.log(json)
  22. return json?.result || []
  23. }