–³—¿‚ÌJavaScriptƒŠƒtƒ@ƒŒƒ“ƒXB

–³—¿ƒz[ƒ€ƒy[ƒW‘fÞ‘qŒÉ
ƒTƒCƒgƒ}ƒbƒv [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
ƒlƒbƒg•›Žû“ü‚̘B‹àp‚ÌŒŸõ Web ƒTƒCƒg

JavaScript‚Ì\•¶

ðŒ•ªŠòŒn

–¼‘OðŒ”\•¶IENN
ifðŒ‚ª1‚Âif(exp){statements1}32
ðŒ‚ª2‚Âif(exp){statements1}
else{statements2}
ðŒ‚ª3‚Âif(exp1){statements1}
else if(exp2){statements2}
else{statements3}
switchðŒ‚ª3‚ˆÈãswitch(exp){
case value1:statements1;
case value2:statements2;
case value3:statements3;
case value4:statements4;
default:statements5;
}

if‚ÍA’Êí‚Í2•ÅðŒŽ®‚Ì•Ô‚è’l‚Å‚ ‚étrue‚©false‚©‚É‚æ‚èðŒ•ªŠò‚·‚邪A •Ô‚è’l‚ª0‚È‚çfalseA0ˆÈŠO‚È‚çtrue‚Æ‚¢‚¤“ÁŽê‚ÈŽg‚¢•û‚à‚Å‚«‚é‚Ì‚ÅA’P€ðŒŽ®‚àŽg‚¦‚éB

ŒJ‚è•Ô‚µŒn

–¼‘Oˆ—\•¶IENN
whileexp‚ªtrue‚È‚çstatements‚ðŒJ‚è•Ô‚·Bwhile(exp){statements}32
do whilewhile‚ƈႢAʼn‚Ì1‰ñ‚Ístatements‚ðŽÀsBdo{statements}while(exp1)
for”CˆÓ‰ñ”‚ÅŒJ‚è•Ô‚·Bfor(exp1;exp2;exp3){statements}
”z—ñ‚Ȃǂ̌”•ªAŒJ‚è•Ô‚·Bfor(var in array){statements}

ƒ‹[ƒvŒn

–¼‘Oˆ—\•¶IENN
labelcontinue,break‚ÌŽQÆælabel n:44
breakƒ‹[ƒv‚𔲂¯‚éBbreak32
ƒ‹[ƒv‚𔲂¯‚Älabel‚Ö”ò‚ÔBbreak label44
continue‚»‚̃‹[ƒv‚𖳎‹‚µAƒ‹[ƒv‚𑱂¯‚éBcontinue32
‚»‚̃‹[ƒv‚𖳎‹‚µAlabel‚©‚烋[ƒv‚𑱂¯‚éBcontinue label44

ƒIƒuƒWƒFƒNƒgŽQÆ

–¼‘Oˆ—\•¶IENN
withƒIƒuƒWƒFƒNƒg‚É—lX‚ÈŽw’è‚ð1“x‚És‚È‚¤Bwith(obj){
statements1;
statements2;
}
32

‚»‚Ì‘¼

–¼‘Oˆ—\•¶IENN
throw—áŠO‚ð”­¶‚³‚¹‚éBthrow ”CˆÓ;??
try catch finallystatement1‚ŃGƒ‰[‚ª”­¶‚µ‚½ŽžA
statement2‚Å—áŠO‚ðˆ—‚µA
‚»‚ÌŒ‹‰Êstatement3‚ð–³ðŒ‚ÉŽÀsB
try{statement1}
catch(”CˆÓ){statement2}
finally{statement3}
??

s‚à‚­‚¶‚Ö„ £‚±‚̃y[ƒW‚̃gƒbƒv‚Ö„ 

ƒOƒ‰ƒtƒBƒbƒN‘fÞ
HTML‚ÆJavaScript‘fÞ
Ž‘—¿
‚¨‚·‚·‚߃‰ƒ“ƒLƒ“ƒO
HTMLŽ«“T
JavaScriptŽ«“T
•Ö—˜î•ñ
ƒz[ƒ€ƒy[ƒW‰^‰cuÀ
ƒz[ƒ€ƒy[ƒW—pŒêW
ƒŠƒ“ƒN
Copyright©2004-2018 –³—¿ƒz[ƒ€ƒy[ƒW‘fÞ‘qŒÉ All rights reserved.
SEO [PR] ”š‘¬!–³—¿ƒuƒƒO –³—¿ƒz[ƒ€ƒy[ƒWŠJÝ –³—¿ƒ‰ƒCƒu•ú‘—