ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    一键导入的 Scheme

    Feb 9, 20238 min read
      clashInstall() {
          if (this.customSubUrl === "") {
            this.$message.error("请先填写必填项,生成订阅链接");
            return false;
          }
    
          const url = "cl*****ash://install-config?url=";
          window.open(
            url +
            encodeURIComponent(
              this.curtomShortSubUrl !== ""
                ? this.curtomShortSubUrl
                : this.customSubUrl
            )
          );
        },
    

    相关文章

    Go mongo TZ时间转换

    该Go代码定义了一个`JsonTime`类型,用于在JSON和BSON格式之间转换时间,并将其应用于`News`结构体的时间字段`create_time`。

    Flutter Dart 扩展(extension)为已有类型添加新功能的方式的使用方法和代码演示

    Flutter Dart中的扩展(extension)允许开发者为现有类添加额外的方法和属性,提高代码的灵活性和开发效率。

    next.js adsense 增加

    Add a script tag to `_document.js`'s `head` for Google AdSense integration and use a React component to display ads.

    Echarts坐标轴的name属性更改位置

    该代码段展示了一个使用Echarts库的Vue组件,其中包含了如何更改坐标轴name属性的位置,以及如何配置图表的样式和数据。

    http 请求连接最大超时时间?

    HTTP协议中未规定请求连接的最大超时时间,实际超时时间由TCP/IP协议及操作系统默认设置决定,也可通过修改TCP参数或HTTP客户端库选项进行调整。