ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    fetch 发送 post 请求

    Oct 26, 20219 min read
    (async () => {
      const rawResponse = await fetch('https://httpbin.org/post', {
        method: 'POST',
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
        },
        body: JSON.stringify({a: 1, b: 'Textual content'})
      });
      const content = await rawResponse.json();
    
      console.log(content);
    })();
    

    相关文章

    RARBG种子站倒闭了,这个是github上一个备份Backup of magnets from RARBG

    A GitHub repository by "2004content" contains a backup of over 1.7 million RARBG magnet links, offering a resource for accessing various content categories in case of RARBG's shutdown.

    Mac 设置任意长度密码

    通过在终端输入`pwpolicy -clearaccountpolicies`命令并执行`passwd`,可以将默认的最低4位数密码更改为1位数密码,并在偏好设置中重新设置密码。

    甲骨文永久删除附加的引导

    甲骨文作为文化遗产,对研究古代历史和语言至关重要,不能被删除或取消研究。

    哲学讨论:怎么证明或者证伪命运是注定的?

    命运是否注定是一个无法证明或证伪的哲学问题,涉及量子力学的测不准原理和生物学的基因与环境互动,最终每个人应追求自己的生活方式并接受生活中的挑战与机遇。

    File对象、dataURL、Blob对象互转

    该代码提供了将File或Blob对象转换为dataURL,以及将dataURL转换为Blob对象的方法,并展示了如何通过表单获取文件并进行转换。