原文(
nakeman.cn/engineering…)補充
技能清單
第一,你應該瞭解JS語言的核心組成
JS的核心構件可簡單的分爲如下幾類:
javascript
- 第一,基本的語言功能,包括像
- 條件分支 if/else
- 異常處理 error handling :throw/try/catch
- 數組處理 array manipulation:push/map/reduce/filter
- 字符串處理 string manipulation :replace/slice/split
- 第二,邏輯比較的機制,truthiness 和 falsiness,這裏有周知的陷阱;
- 第三,JSON object 處理;
- 第四,變量做用域;
![](http://static.javashuo.com/static/loading.gif)
- 第五,最新版ES6的語言功能,包括 Promises, modules, classes, template literals, generators and destructuring等;這些新功能你能夠選擇不用,但熟知它們可以讓你更快的「偷師」。
![](http://static.javashuo.com/static/loading.gif)
第二,你須熟悉異步式代碼
JS有多種異步處理方案,主要有:回調函數(CallBack)、Promise、Generator函數、async/await。html
![](http://static.javashuo.com/static/loading.gif)
第三,你須精通JS函數對象的使用
技術點包括:函數做用域、閉包現象、this的原理,還有新進的箭頭函數。java
![](http://static.javashuo.com/static/loading.gif)
第四,你須對計算機網絡和HTTP協義有基本的認識
包括:web
- 有基本的分佈式應用結構概念:服務端和客戶端;
- 能解釋當用戶點擊連接後瀏覽器工做原理;
- 知道什麼是HTTP請求,以及常見的請求方法的使用:GET/PUT/POST/DELETE
- 知道REST 和 AJAX 分別是什麼;
- 掌握一種常見的發送HTTP請求的編程工具或API,例如XMLHttpRequest、fetch、jQuery’s ajax methods
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
第五,你須瞭解基本的頁面設計任務
頁面設計任務,涉及了「實現技術」和「交互設計」兩個方面的內容,前者有關HTML CSS的技術,後者則是交互設計(理論)。ajax
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)