皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
按下图页面效果,完成代码填充(12分)。 填充说明:(1)通过ID号获取输入文本框number的内容;(2)n不为null;(3)第i项表达式;(4)将sum保留2位小数;(5)累加和文本框只读;(6)“计算累加和”按钮单击事件触发compute()函数。 〈html〉 〈head〉 〈title〉 计算1+1/3+1/5+...+1/(2*n-1)的累加和 〈/title〉 〈style type="text/css"〉 body{margin:0 auto;text-align:center;} #exp_5{width:300px;height:200px;border:8px groove #009900;margin:50px auto;line-height:2em;} h3{text-align:center;color:#0000cc;padding:10px;} 〈/style〉 〈script type="text/javascript"〉 function compute(){ var n=parseFloat( (1) ________.value); if (n!=0 || (2) ________l){ for (sum=0,i=1;i〈=n ;i++ ) {sum=sum+ (3) ________;}}//计算结果保留两位小数。 document.getElementById('sum_n').value=sum. (4) ________;} 〈/script〉 〈/head〉 〈body〉 〈div id="exp_5" class=""〉 〈h3〉计算累加和〈/h3〉 〈form method="post" action=""〉 输入数N:〈input type="text" name="number" id="number" maxlength="6"〉〈br〉 累加和 :〈input type="text" name="sum_n" id="sum_n" (5) ________〉 〈input type="button" value="计算累加和" (6) ________〉 〈input type="reset"〉 〈/form〉 〈/div〉 〈/body〉 〈/html〉
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Certain colors when incorporated into the decor of a room can produce a cozy atmosphere.
A.
light
B.
roomy
C.
cluttered
D.
comfortable
【判断题】因一个质子得失而相互转变的每一对酸碱称为共轭酸碱对。
A.
正确
B.
错误
【简答题】简述急性闭角型青光眼和急性虹膜睫状体炎的鉴别诊断。
【简答题】cozy
【单选题】The room assigned to Joan and Abby is ( )
A.
cozy
B.
a suite
C.
colorful
D.
big
【单选题】I should like to rent a house, that is modern, cozy and, ______ , in a convenient place.
A.
before all
B.
above all
C.
over all
D.
first of all
【单选题】创伤第一期愈合的临床特点是( )。
A.
创缘不整
B.
感染严重
C.
瘢痕组织多
D.
炎症反应轻微
E.
愈合时间长
【简答题】因一个质子的得失而相互转变的每一对酸碱,称为 。它的 Ka 和 Kb 的关系是 。
【简答题】This apartment is ______ (nice)and ______ (cozy)than the other one.
【判断题】a cozy and homey waiting room waiting是分词做定语
A.
正确
B.
错误
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题