随笔分类 - JavaScript
摘要:优先级 运算类型 关联性 运算符 20 圆括号 n/a(不相关) ( … ) 19 成员访问 从左到右 … . … 需计算的成员访问 从左到右 … [ … ] new (带参数列表) n/a new … ( … ) 函数调用 从左到右 … ( … ) 可选链(Optional chaining) 从
阅读全文
摘要:在严格模式下不支持使用 “arguments.callee / arguments.callee.caller” (Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on st
阅读全文
摘要:// 方法一 const bigCamel = (s) = { let empty = " \t\r\n", result = ""; for (let i = 0; i { return str.split(" ") .filter(item = { return item.length 0 })
阅读全文
摘要:常用函数 1. static: 检测数据是不是除了symbol外的原始数据 function isStatic(value) { return (typeof value === 'string' || typeof value === 'number' || typeof value === 'b
阅读全文