原创 Ionic_1 環境部署

(本文爲HKUST的Ionic課程筆記) 關於ionic等架構的分析與比較,以及native, hybrid和web app的分析與比較,將單獨開一篇博客來討論。 首先,假定環境中已經部署了Node.js和NPM等組件,第一步是安裝兩個全

原创 AngularJS_2 Scope

(This is the note of angular course in HKUST.) Scope is the core part of Angular’s two-way binding, it’s the ‘glue’ bet

原创 Express_1 Demo

(本文爲課程筆記) 首先新建node.js項目,控制檯輸入npm init,然後按需配置即可。 然後,添加module,按需添加即可。配置完成後,package.json文件如下: { "name": "webTest", "pr

原创 Grunt環境部署_3

(本文是基於HKUST的NodeJS課程Grunt部分的學習筆記) 目前,我們已經在grunt中添加了JSHint這一Task,下面我們將繼續添加一些。 第一步,對HTML中的頁面引用信息做適當標註,下面爲一個示例: <!-- build

原创 Grunt環境部署_4

(本文是基於HKUST的NodeJS課程Grunt部分的學習筆記) 之前已經完成了grunt主要的部署工作,能夠應對大多數情況下的需求。這裏我將追加一個實時更新的功能模塊。該功能將佔用一個端口,並監聽部分文件的變動,若發生變動(保存爲準)

原创 Express_2 Express Generator

(本文爲課程筆記) 總體來說,express generator可以幫助我們快速搭建一個express環境。 首先,要將它安裝在全局環境裏:npm install express-generator -g 然後,就可以使用express

原创 AngularJS_1 基本語法

<!DOCTYPE html> <html lang="en" ng-app="confusionApp"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Co

原创 AngularJS_3 Form

(This is the note of angular course from HKUST) With the help of Angular form validation, we can do most validation wor

原创 Grunt環境部署_2

(本文是基於HKUST的NodeJS課程Grunt部分的學習筆記) 首先,我將實現JSHint模塊,用於檢查JS文件語法。 第一步,將cmd導航至一級目錄,運行以下代碼,安裝4個module: npm install grunt-cont