程式設計 金一乙 梁鈺潔D10917239
第一次上課
下載老師寫好的程式碼,再去修改
第二次上課
學會使用、輸入
<input type="button"value="2020每年通貨走勢"onclick="draw()">
button 鈕扣、按鈕
type可以改成radio,checkbox.....
第三次上課
利用表單,傳輸指令到JavaScript
學習二進位與變數
ctx物件的字形font 後面接屬性properties 方法method 物件導向設計 object-oriented programming design
學習條件式
IF(是不是豬頭)
{是豬頭,要進行的動作}
Eles
{不是豬頭,要進行的動作}
十進位 | 十六進位 | 二進位 |
decimal | hexadecimal | binary |
0 | 0 | 0 |
1 | 1 | 1 |
2 | 2 | 10 |
8 | 8 | 1000 |
9 | 9 | 1001 |
10 | A | 1010 |
11 | B | 1011 |
12 | C | 1100 |
13 | D | 1101 |
14 | E | 1110 |
15 | F | 1111 |
16 | 10 | 10000 |
17 | 11 | 10001 |
253 | FD | 11111101 |
254 | FE | 11111110 |
255 | FF | 11111111 |
第七週網頁命令與VBA命令比較
| 網頁指令 |
| 輸入資料: |
| 輸入資料:<input type="text" |
| 輸入數字: |
| 輸入數字:<input id="b" type="number" /> |
| 網頁指令 |
| <input onclick="alert('你是豬')" type="button" value="按我" /> |
| 輸入密碼 |
| 輸入密碼<input type="password" > |
| 是否吃素: |
| 是否吃素:<input type="checkbox"></td></tr> |
| 豬狗貓 |
| 豬<input type="radio" />狗<input type="radio" />貓<input type="radio" /> |
| 豬狗貓 |
| 豬<input name="pet" type="radio" />狗<input name="pet" type="radio" />貓<input name="pet" type="radio" /> |
留言
張貼留言