Skip to content

请问,如何把ajax语句( 用于获取jason数据 )改写为got语句? #8308

Answered by auto-bot-ty
Derekmini asked this question in Q&A
Discussion options

You must be logged in to vote
(async () => {
  const { body } = await got.post(
    "http://job.hrbeu.edu.cn/HrbeuJY/Web/Employ/QueryCalendar",
    {
      json: {
        yearMonth: "2021-09",
      },
      responseType: "json",
    }
  );
  console.log(body[8]);
})();

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Derekmini
Comment options

@auto-bot-ty
Comment options

@Derekmini
Comment options

Answer selected by Derekmini
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants