金醫已 程式設計心得
第一週 | 第二週 | 第三週 | 第四週 | 第五週 | 第六週 | 第七週 | 第八週 | 第九週 |
第一週2020/09/08
html=hyper text markup language
第二週2020/09/15
學習
<input type="button" value="2020年每天通貨走勢" onload="draw()">
<label>選擇顏色:</label> <label>黑色<input name="color" type="radio" /></label> <label>紅色<input name="color" type="radio" /></label> <label>綠色<input name="color" type="radio" /></label> <label>藍色<input name="color" type="radio" /></label><br />
第三週2020/09/22
在HTML處增加。
<form><b>選擇顏色:
<input id="linecolor" type="checkbox">紅色
<input onclick="draw()" type="button" value="2020年每天通貨走勢" />
</form>
在JavaScript處作如下更改。
ctx.fillStyle="black";
if ( document.getElementById('linecolor').checked )
ctx.fillStyle="red";
十進位 | 十六進位 | 二進位 |
decimal | hexadecimal | binary |
0 | 0 | 0 |
1 | 1 | 1 |
2 | 2 | 10 |
3 | 3 | 11 |
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 |
第四週2020/09/29
選擇速度: <select id="selection">
<option value="10">10</option>
<option value="20">20</option>
<option value="40" selected>40</option>
<option value="100">100</option>
<option value="100">500</option>
</select>
選擇顏色:
<input id="linecolor" type="checkbox">紅色 <!--核取方塊 linecolor -->
<input onclick="draw()" type="button" value="2020年每天通貨走勢" />
</form>
第五週2020/10/06
HTML,CSS,JavaScript
階層式樣式表(英語:Cascading Style Sheets,縮寫:CSS;又稱串樣式列表、級聯樣式表、串接樣式表、層疊樣式表)是一種用來為結構化文件(如HTML文件或XML應用)添加樣式(字型、間距和顏色等)的電腦語言,由W3C定義和維護。目前最新版本是CSS2.1,為W3C的推薦標準。[來源請求]CSS3現在已被大部分現代瀏覽器支援,而下一版的CSS4仍在開發中。
來源自維基百科
F12 (Function 12)進入開發人員模式,除錯debug(抓蟲bug)
第六週2020/10/17
網頁指令 | VBA指令 |
聯絡人職稱: | UserForm_Initialize()'起始表單事件設定 |
聯絡人職稱:
<select id="ComboBox1"> <option>董事長</option> <option>總經理</option> <option>副總經理</option> <option>財務長</option> <option>人資長</option> </select> |
With ComboBox1 .Additem("董事長") .Additem("總經理") .Additem("副總經理") .Additem("財務長") .Additem("人資長") End With |
commandbutton | |
<input onclick="alert('按三小靠北死小孩')" type="button" value="按下我" /> | commandbutton |
豬狗貓 | commandbutton |
豬<input type="radio"/>狗<input type="radio"/>貓<input type="radio"/> | commandbutton |
豬狗貓 | commandbutton |
豬<input type="radio" name="a"/>狗<input type="radio" name="a"/>貓<input type="radio" name="a"/> | commandbutton |
第七週2020/10/20
網頁指令 | VBA |
輸入資料: | |
輸入資料: &1t;input type="text" id="a"> | textbox |
輸入數字: | |
輸入數字: &1t;input type="number" id="a"> | checkbox |
<input onclick="alert('你他媽點三小')" type="button" value="欸" /> | |
輸入密碼 | |
輸入密碼<input type="password" > | |
是否吃素: | |
是否吃素: <input type="checkbox" > | |
豬狗貓 | |
豬<input type="radio" />狗<input type="radio" />貓<input type="radio" /> | |
豬狗貓 | |
豬<input name="pet" type="radio" />狗<input name="pet" type="radio" />貓<input name="pet" type="radio" /> | |
EXCEL VBA | |
Private Sub CommandButton1_Click() Dim addnew As Range '定義 變數 addnew 是工作表的一個範圍 If Range("A1").CurrentRegion.Rows.Count = 1 Then Set addnew = Sheets("DataTable").Range("A1").Offset(1, 0) Else Set addnew = Sheets("DataTable").Range("A1").End(xlDown).Offset(1, 0) End If addnew.Offset(0, 0).Value = TextBox1.Text '統一編號 addnew.Offset(0, 1).Value = TextBox2.Text '公司 addnew.Offset(0, 2).Value = TextBox3.Text '聯絡人 addnew.Offset(0, 4).Value = TextBox4.Text '地址 addnew.Offset(0, 3).Value = ComboBox1.Value '聯絡人職位 使用下拉式選單 ListBox1.ColumnCount = 5 '在清單方塊 ListBox1 顯示輸入的資料,5 columns ListBox1.RowSource = "A1:E65536" End Sub Private Sub CommandButton2_Click() End End Sub Private Sub UserForm_Initialize() ComboBox1.AddItem ("董事長") ComboBox1.AddItem ("總經理") ComboBox1.AddItem ("副總經理") ComboBox1.AddItem ("財務長") End Sub |
第八週2020/10/27
國庫券T-Bill,Treasury Bills, 美國財政部Department of the Treasury, 台灣財政部Administry of Finance
國庫券面額$ 天期貼現率 %
價格$(計算中)
參考李顯儀金融市場page 4-12
留言
張貼留言