劉宜蒨學習Bro Code製作計算機

劉宜蒨學習Bro code製作計算機

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

Build this JS calculator in 15 minutes!

心得與考試重點 LIST條列, UL=UNORDERED LIST, OL=ORDERED LIST, BUTTON按鈕, CLICK按下, ONCLICK事件 網頁的命令,大小寫都可以。 刪 SCRIPT區段有三個自訂的函數 function appendToDisplay(input) { const display = document.getElementById("display"); display.value += input;} function clearDisplay() { const display = document.getElementById("display"); display.value = "";} function calculate() { const display = document.getElementById("display"); try{ display.value = eval(display.value); } catch(error){display.value = "Error";} } 在STYLE區段定義.MY{BACKGROUND-COLOR: PURPLE;}可以用在網頁的CLASS='MY'元件 徘徊 CSS上製造滑鼠在上面就會改片樣式HOVER同義字excurse, hesitate, hover, linger, potter, roam BUTTON:HOVER滑鼠在上面,BUTTON:ACTIVE按下滑鼠

留言

  1. 有心得,就很優秀,是全人類的希望!https://syx0304syx.blogspot.com/2024/12/bro-code.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

劉宜蒨二分法求內部報酬率

劉宜蒨Javascript物件導向

劉宜蒨javascript與Python比較