随笔分类 -  JavaScript

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