郭芯薰eval()內建函數data type資料型態
郭芯薰學習Bro code製作計算機
display.value = eval(display.value)
disply的vlue用eval(display.value)取代,算是「字串」運算結果 eval()內建函數(方法) in-line線內設定樣式。readonly唯讀read only。電腦的.的接續術性或函數disply.value面板顯示的內容value值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事件
- 網頁的命令,大小寫都可以。
- <"button onclick="clearDisplay()">刪</button>
- 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按下滑鼠
- 10進位自碼表達÷÷ 247=16*15+7=16*F+7=
0, 60:<,60=48+12=16*3+C, x3C< 61:=, 62:>, 65:A, 97:a, 247:÷, 如果用16進位前面要加上小寫的x字碼CODE 48 60 61 62 65 97 247 248 249 250 字元CHARACTER 0 < = > A a ÷ ø ù ú
1230.全宇宙最傑岀!https://guovupvmp.blogspot.com/2024/12/bro-code-7-8-9-4-5-6-1-2-3-0.html
回覆刪除