Skip to main content

Js Diff 目录

· One min read

JS 语言在诞生之后就伴随着"不严谨","问题多"的说法, 加上浏览器BOM api,DOM api 的差异, 导致了使用上稍微不注意就会存在 bug, 下面针对一些比较常见的存在差别但是又经常混用的 api、语法和概念,进行讲解, 先挖坑,慢慢填

var/let/const

async、await/promise

[context/this/call/apply/bind]

[微任务/宏任务]

[localStorage/sessionStorage/indexDB/cookie]

[function(){}/()=>{}/this]

[XMLHttpRequest/fetch]

[ES5/ES6]

[JS/TS]

[==/===]

[防抖debounce/节流throttle]

[document.appendChild/document.write/element.innerHTML]

[闭包]