ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    axios 添加请求头

    Jun 28, 20215 min read
    const headers = {
      'Content-Type': 'application/json',
      'Authorization': 'JWT fefege...'
    }
    
    axios.post(Helper.getUserAPI(), data, {
        headers: headers
      })
      .then((response) => {
        dispatch({
          type: FOUND_USER,
          data: response.data[0]
        })
      })
      .catch((error) => {
        dispatch({
          type: ERROR_FINDING_USER
        })
      })

    相关文章

    puppeteer TypeError text is not iterable

    Puppeteer 抛出 TypeError: text is not iterable 错误,可能是因为尝试将非字符串类型数据输入到文本类型的输入框中。

    PackagesNotFoundError The following packages are not available from current channels - gradio

    解决 PackagesNotFoundError 问题,通过添加 conda-forge 渠道并安装 gradio。

    如何使用python 实现照片去重

    照片去重可通过计算哈希值实现,Python中使用imagehash库的phash函数比较照片哈希值来识别并删除重复照片。

    北京等地面临极端炎热气候影响

    《Nature Communications》的一项研究指出,全球暖化将使极端高温天气在全球范围内更加普遍,北京及其它地区需做好应对准备,包括改善城市规划和提高建筑隔热性能。

    用JavaScript实现商品SKU及其实现思路

    本文介绍了如何使用JavaScript实现商品SKU,包括定义商品属性、生成所有组合、存储SKU信息以及根据用户选择筛选SKU的方法。