F2e class #2
TonyQ
https://slid.es/tonyq/f2e-class-2 (http://goo.gl/4Lfnee )
請先抓 bootstrap 2.3.2
jQuery 1.10.2 ( 如果打開是 js,右鍵另存檔案)
前情提要
上週我們講了 HTML 基礎
CSS ... 講了一點點
JavaScript ...講了一點點
第一章
打底
bootstrap 套用
jQuery 引入
第二章
事件
1. Enter => 送出
keydown
第二章
事件
3. 資料儲存
ajax (localstorage)
第三章
validation / popup
驗證內容是空白時,在畫面提醒使用者
第四章
Reuse
如何讓多個 Todo Board 在同一個畫面?
從綁定元素到條件契約
$("#todoboard") #=> $(".todoBoard")
第四章
Reuse
讓程式碼 Load on demand #=> RequireJS
第四章
Reuse
合併 JS 產出結果
NoteJS
r.js