訂閱:
張貼留言 (Atom)
【JavaScript】用物件Mapping的方法
If的寫法 我們希望當變數是a時就回傳1,變數是b就回傳2,變數是c就會回傳3,一般寫法就是用if,但是這樣會很冗 // IF style var word if(word == 'a'){ word = 1 } else if...
-
.gray{ position: relative; border: 1px solid black; width: 400px; height: 200px; margin: 0 auto; background-color: rgb(...
-
表格排序 範例: https://codepen.io/NishanYeah/pen/YjNPgx 箭頭的的icon 貼入fontawesome css <link rel="stylesheet" href=...
-
querySelector 舊的寫法,缺點是要記比較多寫法 document.getElementById(“title”).innerText document.getElementsByClassName(“content”) // 要記住回傳的是陣列!...
沒有留言:
張貼留言