ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    vscode自动编译TS

    Mar 13, 20222 min read

    vscode自动编译TS

    1). 生成配置文件tsconfig.json
        tsc --init
    2). 修改tsconfig.json配置
        "outDir": "./js",
        "strict": false,    
    3). 启动监视任务: 
        终端 -> 运行任务 -> 监视tsconfig.json
    

    相关文章

    在 Go 中使用 Cloudflare R2

    在Go中使用Cloudflare R2,需安装依赖、导入库、创建请求、设置URL和参数,然后发送请求并处理响应。

    SwiftUI 通过使用各种修饰符来调整视图的亮度,色调,色相,饱和度等的代码演示

    SwiftUI提供了brightness、colorMultiply、hueRotation和saturation等修饰符,用于调整视图的亮度、颜色强度、色相和饱和度,以改变视图的外观和颜色。

    计算N年时农场羊只数量的方法是什么?

    方法通过Python函数计算N年后农场羊只数量,每年羊的数量翻倍并增加一只新生羊,最终返回总数。

    使用Golang regexp在字符串中查找数字

    使用Golang的regexp包在字符串中查找并提取所有数字。

    opencv.js Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0.

    Ensure the source image has non-zero dimensions before using `getImageData` to avoid errors when retrieving pixel data from a canvas.