This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
powershell -ExecutionPolicy ByPass -File "还原U盘隐藏文件.ps1" | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bin extends Set { | |
static #typeError_Constructor = "传入的不是 number 和 bigint 类型或这个两个类型的数组"; | |
static #typeError_FlagsNum = "传入的不是 number 和 bigint 类型"; | |
static #typeError_FlagsArray = "传入的不是 number 类型的数组"; | |
static #typeError_NotInteger = "传入的不是 整数"; | |
static #rangeError_NotSafe = "传入的 number 大于 53 位"; | |
/** | |
* 构建函数 | |
* @param {(number | bigint | number[])} arg 传入参数 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Detail: 仿照 DOMTokenList 功能实现的自定义 CustomTokenList Version2 (extends Array) | |
* Reference: https://gist.github.com/dimitarnestorov/48b69a918288e9098db1aab904a2722a | |
* Use: | |
let span = document.querySelector("span"); | |
let _ctl = new CustomTokenList(span, "custom-token"); | |
span.customTokenList = _ctl; | |
span.customTokenList.add("token1","token2"); | |
console.log(span.getAttribute("custom-token")); | |
// token1 token2 |