葉宗翰學習brocode

葉宗翰習Bro code製作計算機

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

Build this JS calculator in 15 minutes!

心得與考試重點

  1. LIST條例,UL=UNORDRED LIST,OL=ORDERED LIST 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: ORANGE}可以用在網頁的CLASS='MY'元件
  6. CSS上製造滑鼠在上面就會改片樣式HOVER同義字excurse, hesitate, hover, linger, potter, roam
  7. BUTTON:HOVER滑鼠在上面,BUTTON:ACTIVE按下滑鼠

留言

  1. 帥哥真的宇宙無敵,樂在其中!https://yezonghan.blogspot.com/2024/12/brocode.html?m=1

    回覆刪除

張貼留言

這個網誌中的熱門文章

葉宗翰JAVASCRIPT與PYTHON比較

葉宗翰STYLE與SCRIPT放在HTML後