ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    解决 Chrome 插件开发 Axios adapter is not a function

    Aug 4, 20223 min read
    TypeError: adapter is not a function
        at dispatchRequest (background.js:836:10)
        at Axios.request (background.js:599:15)
        at Axios.post (background.js:634:17)
        at Function.wrap [as post] (background.js:1276:15)
        at do_post (background.js:2418:50)
        at handleTransImpl (background.js:2370:72)
        at handleMessage (background.js:2551:94)
        at background.js:2546:5
    

    换 fetch

    相关文章

    nginx 跨域配置字段

    Nginx跨域配置包括设置`Access-Control-Allow-Origin`、`Access-Control-Allow-Headers`、`Access-Control-Allow-Methods`,并处理`OPTIONS`预检请求以支持跨域资源共享。

    How to add SVG icon in Swift?

    To add an SVG icon in Swift, convert the SVG file to a CGPath using SVGKit, create a custom UIView or CALayer with the path, and add it to your view hierarchy.

    浮点数的存储

    JavaScript使用64位双精度浮点数存储所有数字,通过自定义toFixed方法和使用第三方库decimal.js来处理小数精度问题。

    CSS中fill属性有哪些实用场景?

    在CSS中,`fill`属性主要用于指定SVG图形中的填充颜色,适用于填充形状和路径,且可通过`opacity`调整透明度。

    Android App全局灰度展示

    全局灰度展示是一种在Android App中测试新功能的方法,通过调整应用架构、设计策略、引入标识、配置开关和收集分析数据,以小部分用户为样本进行测试,从而优化功能并降低对所有用户的影响。