清华大学出版社郭克华JavaWeb程序设计上机习题答案

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Chapter2Frame、htmlbodyahref=作者的个人简介.htmltarget=main作者的个人简介/a/body/htmlLogin、htmlbodypalign=centerPleaseLogIn/pbrform   Login:inputtype=textbrPassword:inputtype=passwordbr         inputtype=submitvalue=OKinputtype=buttonvalue=ForgetPassword/form/body/htmlMain、htmlbody(SectionC)/body/htmlRegiter、htmlbodypalign=centerNewMember/pbrformID              inputtype=textbrPassword        inputtype=passwordbrRe-Password     inputtype=passwordbrFirstName      inputtype=textbrLastName       inputtype=textbrAddress         inputtype=textbrCity            inputtype=textbrState          selectoptionselected[SelectState]/option/selectbrCountry         inputtype=textbrEmailAddress   inputtype=textbrSelectInterestinputtype=checkboxTechnologyinputtype=checkboxEnterpriseinputtype=checkboxResearchinputtype=checkboxGovernmentinputtype=checkboxPeopleinputtype=checkboxLifeStyleinputtype=checkboxOpinionbrQuestion       selectoptionselected[SelectQuestion]/option/selectbrAnswer          inputtype=textareabr                inputtype=submitvalue=SubmitInformationinputtype=resetvalue=ResetForm/form/body/htmlTop、htmlbodyahref=target=mainLogin/abrahref=target=mainRegister/a/body/htmlTreemenu、htmlbodyahref=作者的个人简介.htmltarget=main作者的个人简介/a/body/html作者的个人简介、htmlbody作者:局局局/body/htmlChapter31、htmlbodyscripttype=text/javascriptfunctionfun(){b=a/50;c=a%50/20;d=a%50%20/10;e=a%50%20%10/5;f=a%50%20%10%5;}/scriptformname=form您输入的金额为: inputname=text1type=textbr                 inputtype=buttononclick=fun()value=确定br找零的数量为:br             50元inputname=text2type=text张br             20元inputname=text3type=text张br             10元inputname=text4type=text张br              5元inputname=text5type=text张br              1元inputname=text6type=text张br/form/body/html2、htmlbodyscripttype=text/javascriptfunctionadd(){}/scriptformname=formbook1: inputname=text1type=textbrbook2: inputname=text2type=textbrbook3: inputname=text3type=textbrbook4: inputname=text4type=textbrbook5: inputname=text5type=textbr       inputtype=buttononclick=add()value=求和br总价:  inputname=text6type=textbr/form/body/html2S(循环)、htmlbodyscripttype=text/javascriptvarn=newArray();for(i=1;i6;i++){(book+i+  inputname=texttype=textbr);}functionadd(){for(i=0;i5;i++){n[i]=Number(text)[i].value);}}/scriptformname=form       inputtype=buttononclick=add()value=求和br总价:  inputname=texttype=textbr/form/body/html3、htmlbodyscripttype=text/javascriptfor(i=1;i=100;i++){(欢迎 );}/script/body/html4、htmlbodyscripttype=text/javascriptvarn=newArray();varmax=0;varmin=0;functionfun(){for(i=1;i=10;i++){if(n[i]max){max=n[i];}}min=n[1];for(j=1;j=10;j++){if(n[j]min){max=n[j];}}}/scriptformname=formbook 1:   inputname=text1type=textbrbook 2:   inputname=text2type=textbrbook 3:   inputname=text3type=textbrbook 4:   inputname=text4type=textbrbook 5:   inputname=text5type=textbrbook 6:   inputname=text6type=textbrbook 7:   inputname=text7type=textbrbook 8:   inputname=text8type=textbrbook 9:   inputname=text9type=textbrbook10 :  inputname=text10type=textbr         inputtype=buttononclick=fun()value=确定br最高价格:inputname=text11type=textbr最低价格:inputname=text12type=textbr平均价格:inputname=text13type=textbr/form/body/html4S(循环)、htmlbodyscripttype=text/javascriptvarn=newArray();varmin=0;varave=0;varmax=0;for(i=1;i11;i++){(book+i+   inputname=texttype=textbr);}functionadd(){for(i=0;i10;i++){n[i]=Number(text)[i].value);}for(i=0;i10;i++){if(n[i]max){max=n[i];}}min=n[0];for(j=0;j10;j++){if(n[j]min){min=n[j];}

1 / 33
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功