◀︎
STUDY JavaScript_002-5
function ぼたん(複数)
◀︎
1
-----
2
-----
3
-----
4
-----
5
▶︎
let 生成=document.getElementById("もじ")
switch(複数)
{case 0:生成.style.fontSize="4px";break;
case 1:生成.style.fontSize="8px";break;
case 2:生成.style.fontSize="12px";break;
↓
◀︎
1
-----
2
-----
3
-----
4
-----
5
▶︎
◀︎
Contents
STUDY JavaScript_002-5