Coder Utils

【使用前先看介绍/有问题可反馈】Coder Utils (程序员专属工具):为程序员专门准备的常用 JavaScript 函数

As of 2021-03-07. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

نووسەر
kalila-cc
Ratings
0 0 0
وەشان
0.4.3
Created
2020-12-06
Updated
2021-03-07
Size
110 KB
مۆڵەت
نییە
Applies to
هەموو سایتەکان

Coder Utils(程序员专属工具)

脚本介绍

为程序员专门准备的常用 JavaScript 函数

  • 已有函数

    • ut
      • common
        • 深度拷贝 ($deepcopy)
        • 下载Blob ($downloadBlob)
        • 视频控制 ($videoControl)
      • type
        • 有效类型判断 ($isValid)
        • 有效数字判断 ($isValidNumber)
        • 有效对象判断 ($isObject)
        • 迭代对象判断 ($isIterable)
      • obj
        • 最小项目 ($min)
        • 最大项目 ($max)
        • 属性获取 ($prop)
        • 参数转换 ($parseQuery)
      • space
    • Number
      • attribute
        • 生成区间 ($range)
      • prototype
        • 区间判断 ($in)
        • 格式化 ($format)
    • String
      • prototype
        • 字符索引 ($at)
        • 格式化 ($format)
        • 文本解码 ($decodeUnicode)
        • 文本复制 ($copyToClipboard)
        • 参数转换 ($parseQuery)
        • 转换拼音 ($toPinyin)
        • 转换表格 ($toCsv)
        • 转换图片 ($toBase64Img)
    • Array
      • attribute
        • 元素打包 ($zip)
      • prototype
        • 元素索引 ($at)
        • 元素最小值 ($min)
        • 元素最大值 ($max)
        • 元素求累加 ($sum)
        • 元素求平均 ($avg)
        • 元素映射 ($map)
        • 元素搜索 ($where)
        • 元素归并 ($merge)
        • 元素移除 ($remove)
        • 元素交换 ($swap)
        • 元素排序 ($sorted)
        • 元素打乱 (shuffled)
        • 索引重命名 ($reindex)
    • Date
      • prototype
        • 格式化 ($format)
    • NodeList
      • prototype
        • 元素映射 ($map)
        • 元素过滤 ($filter)
    • HTMLCollection
      • prototype
        • 元素映射 ($map)
        • 元素过滤 ($filter)
        • 元素迭代 ($forEach)
    • HTMLElement
      • attribute
        • 创建元素 ($mkel)
      • prototype
        • 插入元素 ($before)
        • 监听元素 ($monitor)
  • 作者想说

    • 若想要增加其他常用函数,欢迎留言反馈
    • 作者有空就更新

使用说明

脚本定义的函数,大部分定义于常用类的 attributeprototype 中,小部分被定义于 window.ut 中,具体函数使用说明请参照脚本代码详情页

更多脚本

欢迎打赏

  • 本脚本为作者本着开源精神而编写,使用完全免费,目的是为了大家的使用更方便
  • 欢迎一键三连(好评+打赏+收藏),你的支持是作者维护下去的最大动力!
  • 打赏通道