摘要:
定义: a function use a variable outside the scope are closures. 或者说 "Closures are FUNCTIONS WITH PRESERVED DATA" console.dir() Displays an interactive(交 阅读全文
摘要:
JavaScript is a bit confusing for developers experienced in class-based languages (like Java or C++), as it is dynamic and does not provide a class im 阅读全文
摘要:
七种数据类型 ·Symbol ·undefined ·null ·Boolean ·String ·Number ·Object let a = Symbol('this is a symbol'); let b = Symbol(); console.log(a b); //false Symbo 阅读全文
摘要:
个人翻译: Updating a DOM is not slow, it is just like updating any JavaScript object; then what exactly makes updating Real DOM slow? 更新一个DOM其实并不慢,就像更新任意一 阅读全文