欢迎来到天天文库
浏览记录
ID:3935579
大小:183.66 KB
页数:9页
时间:2017-11-25
《阶段性总结_javascript第三讲》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、qilei@tarena.com.cn2-1WebWebWeb基础Web基础模块::JavaScript:JavaScript第第三第三三讲三讲讲JS讲JSJSJS条件条件和和循环和循环语句1.课程目标......................................................................................................1-12.课程安排..............................................
2、........................................................2-12.1.JavaScript条件语句..........................................................................2-12.2.JavaScript循环语句..........................................................................2-63.课程总结,..
3、...................................................................................................3-93.1.重点和难点分析...................................................................................3-93.2.常见问题(FAQ)..............................................
4、...................................3-94.课后习题......................................................................................................4-94.1.课后习题...............................................................................................4-91.课
5、程目标•ᳮJavaScriptᑖ •JavaScript2.课程安排2.1.JavaScriptJavaScript条件JavaScript条件语句JavaScriptJavaScript中的条件语句用于完成不同条件下的行为JavaScript中的条件语句用于完成不同条件下的行为。ᩩᙠᑏṹ!◤⌕᪷%&'Ḅᩩ)ᡂ&'Ḅ+,-.ᙠṹ/0ᵨᩩᩭ)ᡂ3456qilei@tarena.com.cn2-2ᙠJavaScript/ᡃ8-.0ᵨ9☢;<ᩩ=ifᙠ?
6、4ᢣAḄᩩᡂB+ṹif...elseᙠᢣAḄᩩᡂB+ṹHᩩ&ᡂB+IḄṹif...elseif....else0ᵨ34-.⌱L+MNᙽṹ/Ḅ?4switch0ᵨ34-.⌱L+MNᙽṹ/Ḅ?4•IfTUVᢣAḄᩩᡂB+ṹW-.0ᵨ34X=if(ᩩ){ᩩᡂB+ṹ}]^=_0ᵨ`ᑏab0ᵨᜧᑏḄIFef┯hij1://Writea"Goodmorning"gr
7、eetingif//thetimeislessthan10vard=newDate()vartime=d.getHours()if(time<10){qilei@tarena.com.cn2-3document.write("Goodmorning")}ij2://Write"Lunch-time!"ifthetimeis11vard=newDate()vartime=d.getHours()if(time==11){d
8、ocument.write("Lunch-time!")}]^=_0ᵨnop(==)ᩭrsh]^=ᙠX/tᨵelseᩩtrue ṹve+•If...elseTUVᩩᡂB+?wṹxᩩ&ᡂB+I?wṹyz-.0ᵨif....elseX=if(ᩩ){ᩩᡂB+{ṹ}else{ᩩ&ᡂB+{
此文档下载收益归作者所有