ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    TS 添加prototype 属性

    Nov 23, 20224 min read
    interface Function {
      _toFixed(params: any): void;
    }
    
    Function.prototype._toFixed = function(params: any) {
      this.apply(this, params);
    };
    

    相关文章

    使用clipboardy或copy-paste复制内容

    要复制和读取剪贴板内容,需安装并导入clipboardy或copy-paste库,两者均提供简单方法实现此功能。

    JavaScript实现UUID生成及作用介绍

    JavaScript实现UUID生成,确保跨系统数据唯一性,用于标识资源和作为主键。

    小程序框架 unibest unocss 配置说明和案例解释

    本文详细介绍了如何配置和使用 Unocss 框架,包括快捷语句、图标预设、样式分组、属性化样式、小程序环境适配以及安全区域样式等功能的实际应用。

    Cloudflare Tunnels step-by-step setup - adding your domain to Cloudflare

    To set up a Cloudflare Tunnel, log into your account, create a worker, configure the tunnel settings, add a domain, install a certificate, update DNS, and verify the configuration.

    SpringBoot 打成的 jar 是怎么启动的?

    Spring Boot打包的jar文件可通过命令行或IDE工具启动,默认监听8080端口,且可配置端口号。