ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    解决 Chrome 插件开发 XMLHttpRequest is not defined

    Aug 4, 20222 min read

    If you're using v8, it uses XMLHttpRequest instead of fetch which is not available in the service worker. Using v9 web SDK will let you use Firebase inside the service worker. Would you mind trying to update the SDK version you're using and see if the issue will persist?

    相关文章

    flutter 修改 Switch 组件大小

    在Flutter中,通过使用SizedBox和FittedBox来调整Switch组件的大小,设置宽度为50和高度为30。

    在 MacOSiPadOSIOS 上通过安装描述文件使用 DOH

    在MacOS/iPadOS/iOS上通过安装描述文件使用DOH(DNS over HTTPS)配置AliDNS。

    CSS 媒体查询 prefers-color-scheme 亮色或者暗色

    该CSS示例通过媒体查询`prefers-color-scheme`根据用户选择的亮色或暗色主题动态调整元素的背景和文字颜色。

    HTTP协议的优缺点是什么?分享一下!

    HTTP协议具有简单易用、可扩展性强、可靠稳定、通用性强和安全性好的优点,但也存在效率较低、安全性有限、不支持状态保持、信任问题和不支持异步操作的缺点。

    Go 上传文件到微信图库

    该Go程序使用Gin框架和go-weixin库实现文件上传功能,将文件保存到本地后上传至微信图库,并提供获取微信操作token的接口。