More Related Content
Similar to Html js css_aha
Similar to Html js css_aha (20)
Html js css_aha
- 6. HTML - head
• title 標題
• meta 提供編碼, 網頁關鍵字, 網頁描述
• script 提供動態網頁功能與事件處理
• css 提供網頁呈現格式設定
- 7. HTML - body
• a 連結
• div span 顯示區塊
• table 表格 td 欄位 tr 列 th 網頁標頭
• br 換行 hr 水平線
• form 表單 input 輸入資料
- 9. JS - Types of Variable
• 整數 1 2 3 浮點數 1.1 1.2
• 文字 “aha“
• 陣列 [‘a’,1,2]
• dictionary {a:’安安’,b:’你好嘛’}
• function function(x,y){ return x+y; }
• object
- 10. JS- Scope
• 所有變數都綁在window 底下
• 變數從裡到外一直找到同名的
• { } 就是定變數區域[ES5以前限函數內]
• var 是在目前區域[函數]內設立變數
• ES6 增加 let 可以在control statement
- 11. JS - JSON Object
• 就是Javascript Object Notation
• 就是剛剛看到的dictionary
• 沒有更多特別的了...以上
- 12. JS - Basic
• document.getElementById([ID])
• document.getElementsByTagName([Tag name])
• setTimeout([function],[time])
• document.write([HTML code])