开门见山,JavaScript数组即将新增 4 个新的非破坏性方法: .toReversed() .toSorted() .toSpliced(...
1、手机号码的校验 const phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/ const phoneStr...
ASCII 编码 ASCII 码使用指定的 7 位或 8 位二进制数组合来表示 128 或 256 种可能的字符。标准 ASCII 码也叫基础 ...
function foo(){ var a = 1 let b = 2 { let b = 3 var c = 4 let d...
.length: js 的原生方法,用于获取元素的个数和对象的长度 var length = $(obj).length; .size(): s...
TMUX 的三种维度 ——sessionwindowpane session会话 tmux new -s (tmux)新建会话 tmux de...
JSON.parse() —— 把 JSON 字符串转换为 JavaScript 对象。 JSON.stringify()—— 将 JavaSc...
String indexOf() :返回某个指定的字符串值在字符串中首次出现的位置(对大小写敏感),如果检索的字符串值没有出现,则返回 -1。 ...
原文链接:https://www.runoob.com/note/34429[https://www.runoob.com/note/34429...