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?

    相关文章

    three.js里有哪几种不同的相机?

    在three.js中,提供了透视相机、正交相机、立方体相机和飞行相机四种不同的相机类型,每种相机在构造时需要传入不同的参数以适应其特定的渲染和控制需求。

    Go 写文件操作

    本文介绍了使用Go语言进行文件操作的方法,包括创建文件、在文件指定位置写入内容以及使用Buffered Writer进行文件写入。

    shadcnui 提供了以下组件

    shadcn/ui 提供了包括手风琴、警告、对话框、头像、按钮等在内的多种UI组件。

    Flutter 自动为代码加上必要的const

    Flutter 使用命令 `dart fix --apply` 自动为代码添加必要的 `const` 关键字。

    使用JavaScript实现图片裁剪功能的完美教程

    本教程详细介绍了如何使用JavaScript库cropper.js在前端实现图片裁剪功能,包括引入库文件、创建DOM元素、配置Cropper对象以及获取裁剪后的图片。