随笔分类 -  javascript

Object.entries() & Object.values()
摘要:prosoal: object values/entries Object.entries() MDN: Object.entries 此方法签名如下: Object.entries(value : any) : Array<[string,any]> 如果 JavaScript 数据结构具有键和值 阅读全文

posted @ 2022-08-22 23:09 一起来吃火锅 阅读(70) 评论(0) 推荐(0)

es2016 - Array.prototype.includes()
摘要:阶段:stage4, Finished 参考: Array.prototype.includes() - JavaScript | MDN GitHub - tc39/proposal-Array.prototype.includes: Spec, tests, reference implemen 阅读全文

posted @ 2022-08-16 10:01 一起来吃火锅 阅读(88) 评论(0) 推荐(0)

等式算法 equality algorithms
摘要:JavaScript 中的相等性判断 - JavaScript | MDN Object.is() - JavaScript | MDN 目前在es6的草案中,有4种等式算法 Abstract Equality Comparison (==) Strict Equality Comparison ( 阅读全文

posted @ 2022-08-16 09:59 一起来吃火锅 阅读(80) 评论(0) 推荐(0)

es2016 - 求幂运算符号 **
摘要:求幂 (**) - JavaScript | MDN GitHub - tc39/proposal-exponentiation-operator: Progress tracking for ES7 exponentiation operator 求幂运算符,一种将指数应用于基数的数学计算。已有的 阅读全文

posted @ 2022-08-13 23:22 一起来吃火锅 阅读(409) 评论(0) 推荐(0)

javascript中的this分析
摘要:函数中的this 在标准函数中,this引用的是把函数当成方法调用的上下文对象,这时候通常称其为this值(在网页的全局上下文中调用函数时,this指向window)。 这个this值到底引用哪个对象,必须到函数被调用的时候才能确定,因此这个值在代码执行过程中可能会变。 箭头函数中的this 在箭头 阅读全文

posted @ 2022-08-13 00:42 一起来吃火锅 阅读(159) 评论(0) 推荐(0)

导航