天天看點

《AngularJS深度剖析與最佳實踐》一導讀

《AngularJS深度剖析與最佳實踐》一導讀

新時代

新挑戰

時代已經不同了!

17年前,當我的第一個作品推入市場的時候,網際網路才剛剛傳入中國。

那時候的軟體不需要聯網,每個使用者也不需要知道其他使用者的存在。

那時候隻需要考慮pc運作環境,而需要考慮的螢幕分辨率也隻有區區三種。

那時候的軟體項目組多則十幾人,少則一人,而釋出周期常常會達到半年之久。

現在,一切都不同了。

現在,連一個手機電筒軟體都在偷偷聯網,不能聯網的遊戲也已經是老古董的代名詞。

現在,軟體不但運作在pc上,還要運作在智能手機上,運作在各種pad上,螢幕分辨率更是多到讓研發和測試工程師發怵的地步。

現在,外界看到的産品其實隻是冰山一角,它背後還有很多子系統緊密協作來提供支援,需求和架構的複雜度也暴增。

但最大的挑戰恐怕還是來自釋出周期—一期版本在一個月内上線已是常态,而修複bug的時間限制則往往以小時計,甚至以分鐘計。

沒錯,這些都是新的挑戰!好在,我們也有了新技術!

<a href="https://yq.aliyun.com/articles/107776">第1章 從實戰開始</a>

<a href="https://yq.aliyun.com/articles/107778">1.1 環境準備</a>

<a href="https://yq.aliyun.com/articles/107783">1.2 需求分析與疊代計劃</a>

<a href="https://yq.aliyun.com/articles/107788">1.3 建立項目</a>

<a href="https://yq.aliyun.com/articles/107802">1.4 實作第一個頁面:注冊</a>

<a href="https://yq.aliyun.com/articles/107825">1.5 實作更多功能:主題</a>

<a href="https://yq.aliyun.com/articles/107834">1.6 實作aop功能</a>

<a href="https://yq.aliyun.com/articles/107835">1.7 實戰小結</a>

<a href="https://yq.aliyun.com/articles/107839">第2章 概念介紹</a>

<a href="https://yq.aliyun.com/articles/107843">2.1 什麼是ui</a>

<a href="https://yq.aliyun.com/articles/107846">2.2 子產品</a>

<a href="https://yq.aliyun.com/articles/107849">2.3 作用域</a>

<a href="https://yq.aliyun.com/articles/107853">2.4 控制器</a>

<a href="https://yq.aliyun.com/articles/107856">2.5 視圖</a>

<a href="https://yq.aliyun.com/articles/107860">2.6 指令</a>

<a href="https://yq.aliyun.com/articles/107867">2.7 過濾器</a>

<a href="https://yq.aliyun.com/articles/107870">2.8 路由</a>

<a href="https://yq.aliyun.com/articles/107875">2.9 服務</a>

<a href="https://yq.aliyun.com/articles/107878">2.10 承諾</a>

<a href="https://yq.aliyun.com/articles/107883">2.11 消息</a>

<a href="https://yq.aliyun.com/articles/107885">2.12 單元測試</a>

<a href="https://yq.aliyun.com/articles/107887">2.13 端到端測試</a>

第3章 背後的原理

3.1 angular中的mvvm模式

3.2 angular啟動過程

3.3 依賴注入

3.3.1 什麼是依賴注入

3.3.2 如何在javascript中實作di

3.3.3 angular中的di

3.3.4 di與minify

3.4 髒檢查機制

3.4.1 浏覽器事件循環和angular的mvw

3.4.2 angular中的$watch函數

3.4.3 angular中的$digest函數

3.4.4 angular中的$apply

3.5 指令的生命周期

3.5.1 injecting

3.5.2 compile和link過程

3.6 angular中的$parse、$eval和$observe、$watch

3.6.1 $parse和$eval

3.6.2 $observe和$watch

3.6.3 使用場景

3.7 rest

3.7.1 rest的六大要點

3.7.2 rest的四個級别

3.8 跨域

3.8.1 同源政策與跨域

3.8.2 如何解決跨域問題

3.9 前端安全技術

3.9.1 前端攻擊的基本原理和類型

3.9.2 前端安全與前後端分工

3.9.3 移動時代的特殊挑戰

3.9.4 安全無止境

繼續閱讀