地表最強帥哥學習Bro Code製作計算機

謝妮學習Bro code製作計算機

https://www.youtube.com/watch?v=I5kj-YsmWjM

心得與考試重點

  1. LIST條例,UL=UNORDERED LIST, OL=ORDERED LIST, BUTTON按鈕, CLICK按下, ONCLICK事件
  2. 網頁的命令,大小寫都可以。
  3. <button onclick="clearDisplay()">刪</button>
  4. SCRIPT區段有三個自訂的函數
    1. function appendToDisplay(input) { const display = document.getElementById("display"); display.value += input;}
    2. function clearDisplay() { const display = document.getElementById("display"); display.value = "";}
    3. function calculate() { const display = document.getElementById("display"); try{ display.value = eval(display.value); } catch(error){display.value = "Error";} }
  5. 在STYLE區段定義.MY{BACKGROUND-COLOR: PURPLE;}可以用在網頁的CLASS='MY'元件 徘徊 excurse, hesitate, hover, linger, potter, roam

留言

這個網誌中的熱門文章

謝妮python繪製三角函數與powerpoint製作影片

謝妮二分法求內部報酬率

謝妮python視窗建構Tk輸入文字Entry視窗字串變數StringVar