Coder Utils

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

As of 2021-04-10. 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.7
Created
2020-12-06
Updated
2021-04-10
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 中,具体函数使用说明请参照脚本代码详情页

作者想说

欢迎关注作者的GitHub主页,通过主页,你可以:

  • 了解本人的更多作品
  • 对代码或程序提出任何意见或建议
  • 联系作者