为了账号安全,请及时绑定邮箱和手机立即绑定

求解!!! 帮忙看下哪里出错了,不显示内容 在线等

求解!!! 帮忙看下哪里出错了,不显示内容 在线等

qq_Eternally_0 2018-08-03 14:05:30
<script type="text/javascript"> functio zz(){ var bt=document.getElementById("day").value; switch(bt){ case "1": case "2": document.write("学习英语"); break; case "3": case "4": case "5": document.write("学习后端"); break; case "6": document.write("学习UI设计"); break; case "7": document.write("学习前端"); break; default: document.write("请重新输入"); } } </script> <div>请输入工作日</div> <input type="text" id="day" /> <input type="button" name="button"  value="查看工作安排"  onclick="zz()" />
查看完整描述

8 回答

?
qq_命运之骰_0

TA贡献2条经验 获得超1个赞

<!DOCTYPE html>
<html>

 <head>
  <meta charset="utf-8">
  <title></title>

 </head>

 <body>
  <script type="text/javascript">
   function zz() {
    var bt = document.getElementById("day").value;
    switch(bt) {
     case "1":
     case "2":
      document.write("学习英语");
      break;
     case "3":
     case "4":
     case "5":
      document.write("学习后端");
      break;
     case "6":
      document.write("学习UI设计");
      break;
     case "7":
      document.write("学习前端");
      break;
     default:
      document.write("请重新输入");
    }

   }
  </script>
  <div>请输入工作日</div>
  <input type="text" id="day" />
  <input type="button" name="button" value="查看工作安排" onclick="zz()" />

 </body>

</html>

//function写错

查看完整回答
1 反对 回复 2018-08-03
?
慕数据8267187

TA贡献108条经验 获得超0个赞

https://www.imooc.com/wenda/detail/348646

https://www.imooc.com/wenda/detail/356736

https://www.imooc.com/wenda/detail/357241

https://www.imooc.com/wenda/detail/346581

https://www.imooc.com/wenda/detail/386324

https://www.imooc.com/wenda/detail/363523

https://www.imooc.com/wenda/detail/386224

https://www.imooc.com/wenda/detail/347284

https://www.imooc.com/wenda/detail/344931

https://www.imooc.com/wenda/detail/336425

https://www.imooc.com/wenda/detail/337404

https://www.imooc.com/wenda/detail/342498

https://www.imooc.com/wenda/detail/337333

https://www.imooc.com/wenda/detail/341548

https://www.imooc.com/wenda/detail/346068

https://www.imooc.com/wenda/detail/334012

https://www.imooc.com/wenda/detail/355369

https://www.imooc.com/wenda/detail/339547

https://www.imooc.com/wenda/detail/334661

https://www.imooc.com/wenda/detail/342815

https://www.imooc.com/wenda/detail/349064

https://www.imooc.com/wenda/detail/353418

https://www.imooc.com/wenda/detail/354268

https://www.imooc.com/wenda/detail/334335

https://www.imooc.com/wenda/detail/353634

https://www.imooc.com/wenda/detail/334660

https://www.imooc.com/wenda/detail/335747

https://www.imooc.com/wenda/detail/350729

https://www.imooc.com/wenda/detail/354574

https://www.imooc.com/wenda/detail/333539

https://www.imooc.com/wenda/detail/344004

https://www.imooc.com/wenda/detail/355720

https://www.imooc.com/wenda/detail/336727

https://www.imooc.com/wenda/detail/345254

https://www.imooc.com/wenda/detail/350944

https://www.imooc.com/wenda/detail/354849

https://www.imooc.com/wenda/detail/342183

https://www.imooc.com/wenda/detail/335818

https://www.imooc.com/wenda/detail/340594

https://www.imooc.com/wenda/detail/353433

https://www.imooc.com/wenda/detail/337666

https://www.imooc.com/wenda/detail/347994

https://www.imooc.com/wenda/detail/346257

https://www.imooc.com/wenda/detail/346964

https://www.imooc.com/wenda/detail/352516

https://www.imooc.com/wenda/detail/332047

https://www.imooc.com/wenda/detail/345459

https://www.imooc.com/wenda/detail/355099

https://www.imooc.com/wenda/detail/352428

https://www.imooc.com/wenda/detail/343771

https://www.imooc.com/wenda/detail/345963

https://www.imooc.com/wenda/detail/354395

https://www.imooc.com/wenda/detail/355196

https://www.imooc.com/wenda/detail/339814

https://www.imooc.com/wenda/detail/342307

https://www.imooc.com/wenda/detail/354980

https://www.imooc.com/wenda/detail/355491

https://www.imooc.com/wenda/detail/345147

https://www.imooc.com/wenda/detail/332020

https://www.imooc.com/wenda/detail/349437

https://www.imooc.com/wenda/detail/333903

https://www.imooc.com/wenda/detail/344693

https://www.imooc.com/wenda/detail/351997

https://www.imooc.com/wenda/detail/351307

https://www.imooc.com/wenda/detail/334552

https://www.imooc.com/wenda/detail/351461

https://www.imooc.com/wenda/detail/347653

https://www.imooc.com/wenda/detail/334642

https://www.imooc.com/wenda/detail/334704

https://www.imooc.com/wenda/detail/338965

https://www.imooc.com/wenda/detail/340559

https://www.imooc.com/wenda/detail/351671

https://www.imooc.com/wenda/detail/344049

https://www.imooc.com/wenda/detail/347518

https://www.imooc.com/wenda/detail/350943

https://www.imooc.com/wenda/detail/347967

https://www.imooc.com/wenda/detail/336624

https://www.imooc.com/wenda/detail/332155

https://www.imooc.com/wenda/detail/342962

https://www.imooc.com/wenda/detail/335926

查看完整回答
反对 回复 2021-10-18
?
慕妹5461943

TA贡献290条经验 获得超0个赞

https://www.imooc.com/wenda/detail/348646

https://www.imooc.com/wenda/detail/356736

https://www.imooc.com/wenda/detail/357241

https://www.imooc.com/wenda/detail/346581

https://www.imooc.com/wenda/detail/386324

https://www.imooc.com/wenda/detail/363523

https://www.imooc.com/wenda/detail/386224

https://www.imooc.com/wenda/detail/347284

https://www.imooc.com/wenda/detail/344931

https://www.imooc.com/wenda/detail/336425

https://www.imooc.com/wenda/detail/337404

https://www.imooc.com/wenda/detail/342498

https://www.imooc.com/wenda/detail/337333

https://www.imooc.com/wenda/detail/341548

https://www.imooc.com/wenda/detail/346068

https://www.imooc.com/wenda/detail/334012

https://www.imooc.com/wenda/detail/355369

https://www.imooc.com/wenda/detail/339547

https://www.imooc.com/wenda/detail/334661

https://www.imooc.com/wenda/detail/342815

https://www.imooc.com/wenda/detail/349064

https://www.imooc.com/wenda/detail/353418

https://www.imooc.com/wenda/detail/354268

https://www.imooc.com/wenda/detail/334335

https://www.imooc.com/wenda/detail/353634

https://www.imooc.com/wenda/detail/334660

https://www.imooc.com/wenda/detail/335747

https://www.imooc.com/wenda/detail/350729

https://www.imooc.com/wenda/detail/354574

https://www.imooc.com/wenda/detail/333539

https://www.imooc.com/wenda/detail/344004

https://www.imooc.com/wenda/detail/355720

https://www.imooc.com/wenda/detail/336727

https://www.imooc.com/wenda/detail/345254

https://www.imooc.com/wenda/detail/350944

https://www.imooc.com/wenda/detail/354849

https://www.imooc.com/wenda/detail/342183

https://www.imooc.com/wenda/detail/335818

https://www.imooc.com/wenda/detail/340594

https://www.imooc.com/wenda/detail/353433

https://www.imooc.com/wenda/detail/337666

https://www.imooc.com/wenda/detail/347994

https://www.imooc.com/wenda/detail/346257

https://www.imooc.com/wenda/detail/346964

https://www.imooc.com/wenda/detail/352516

https://www.imooc.com/wenda/detail/332047

https://www.imooc.com/wenda/detail/345459

https://www.imooc.com/wenda/detail/355099

https://www.imooc.com/wenda/detail/352428

https://www.imooc.com/wenda/detail/343771

https://www.imooc.com/wenda/detail/345963

https://www.imooc.com/wenda/detail/354395

https://www.imooc.com/wenda/detail/355196

https://www.imooc.com/wenda/detail/339814

https://www.imooc.com/wenda/detail/342307

https://www.imooc.com/wenda/detail/354980

https://www.imooc.com/wenda/detail/355491

https://www.imooc.com/wenda/detail/345147

https://www.imooc.com/wenda/detail/332020

https://www.imooc.com/wenda/detail/349437

https://www.imooc.com/wenda/detail/333903

https://www.imooc.com/wenda/detail/344693

https://www.imooc.com/wenda/detail/351997

https://www.imooc.com/wenda/detail/351307

https://www.imooc.com/wenda/detail/334552

https://www.imooc.com/wenda/detail/351461

https://www.imooc.com/wenda/detail/347653

https://www.imooc.com/wenda/detail/334642

https://www.imooc.com/wenda/detail/334704

https://www.imooc.com/wenda/detail/338965

https://www.imooc.com/wenda/detail/340559

https://www.imooc.com/wenda/detail/351671

https://www.imooc.com/wenda/detail/344049

https://www.imooc.com/wenda/detail/347518

https://www.imooc.com/wenda/detail/350943

https://www.imooc.com/wenda/detail/347967

https://www.imooc.com/wenda/detail/336624

https://www.imooc.com/wenda/detail/332155

https://www.imooc.com/wenda/detail/342962

https://www.imooc.com/wenda/detail/335926

查看完整回答
反对 回复 2021-10-18
?
慕妹5461943

TA贡献290条经验 获得超0个赞

https://www.imooc.com/wenda/detail/350801

https://www.imooc.com/wenda/detail/348737

https://www.imooc.com/wenda/detail/336823

https://www.imooc.com/wenda/detail/351414

https://www.imooc.com/wenda/detail/337535

https://www.imooc.com/wenda/detail/354319

https://www.imooc.com/wenda/detail/355069

https://www.imooc.com/wenda/detail/340767

https://www.imooc.com/wenda/detail/352136

https://www.imooc.com/wenda/detail/334821

https://www.imooc.com/wenda/detail/333453

https://www.imooc.com/wenda/detail/336124

https://www.imooc.com/wenda/detail/341818

https://www.imooc.com/wenda/detail/352651

https://www.imooc.com/wenda/detail/332880

https://www.imooc.com/wenda/detail/343435

https://www.imooc.com/wenda/detail/348758

https://www.imooc.com/wenda/detail/332041

https://www.imooc.com/wenda/detail/342382

https://www.imooc.com/wenda/detail/340462

https://www.imooc.com/wenda/detail/347075

https://www.imooc.com/wenda/detail/349225

https://www.imooc.com/wenda/detail/336899

https://www.imooc.com/wenda/detail/343511

https://www.imooc.com/wenda/detail/332795

https://www.imooc.com/wenda/detail/340083

https://www.imooc.com/wenda/detail/354926

https://www.imooc.com/wenda/detail/340260

https://www.imooc.com/wenda/detail/354559

https://www.imooc.com/wenda/detail/349938

https://www.imooc.com/wenda/detail/342831

https://www.imooc.com/wenda/detail/335150

https://www.imooc.com/wenda/detail/352870

https://www.imooc.com/wenda/detail/344293

https://www.imooc.com/wenda/detail/342133

https://www.imooc.com/wenda/detail/333978

https://www.imooc.com/wenda/detail/352130

https://www.imooc.com/wenda/detail/345664

https://www.imooc.com/wenda/detail/351958

https://www.imooc.com/wenda/detail/334432

https://www.imooc.com/wenda/detail/353707

https://www.imooc.com/wenda/detail/343242

https://www.imooc.com/wenda/detail/345893

https://www.imooc.com/wenda/detail/339120

https://www.imooc.com/wenda/detail/348757

https://www.imooc.com/wenda/detail/337710

https://www.imooc.com/wenda/detail/340867

https://www.imooc.com/wenda/detail/337894

https://www.imooc.com/wenda/detail/352596

https://www.imooc.com/wenda/detail/347069

https://www.imooc.com/wenda/detail/340507

https://www.imooc.com/wenda/detail/335633

https://www.imooc.com/wenda/detail/385465

https://www.imooc.com/wenda/detail/356461

https://www.imooc.com/wenda/detail/383702

https://www.imooc.com/wenda/detail/427736

https://www.imooc.com/wenda/detail/345263

https://www.imooc.com/wenda/detail/335952

https://www.imooc.com/wenda/detail/362909

https://www.imooc.com/wenda/detail/363064

https://www.imooc.com/wenda/detail/357202

https://www.imooc.com/wenda/detail/352241

https://www.imooc.com/wenda/detail/389524

https://www.imooc.com/wenda/detail/357004

https://www.imooc.com/wenda/detail/363021

https://www.imooc.com/wenda/detail/389285

https://www.imooc.com/wenda/detail/388923

https://www.imooc.com/wenda/detail/386956

https://www.imooc.com/wenda/detail/388295

https://www.imooc.com/wenda/detail/381198

https://www.imooc.com/wenda/detail/378405

https://www.imooc.com/wenda/detail/335478

https://www.imooc.com/wenda/detail/353723

https://www.imooc.com/wenda/detail/387096

https://www.imooc.com/wenda/detail/337186

https://www.imooc.com/wenda/detail/386052

https://www.imooc.com/wenda/detail/388260

https://www.imooc.com/wenda/detail/342058

https://www.imooc.com/wenda/detail/382158

https://www.imooc.com/wenda/detail/357247

查看完整回答
反对 回复 2021-10-17
?
慕的地6079101

TA贡献3593条经验 获得超0个赞

https://www.imooc.com/wenda/detail/348646 https://www.imooc.com/wenda/detail/356736 https://www.imooc.com/wenda/detail/357241 https://www.imooc.com/wenda/detail/346581 https://www.imooc.com/wenda/detail/386324 https://www.imooc.com/wenda/detail/363523 https://www.imooc.com/wenda/detail/386224 https://www.imooc.com/wenda/detail/347284 https://www.imooc.com/wenda/detail/344931 https://www.imooc.com/wenda/detail/336425 https://www.imooc.com/wenda/detail/337404 https://www.imooc.com/wenda/detail/342498 https://www.imooc.com/wenda/detail/337333 https://www.imooc.com/wenda/detail/341548 https://www.imooc.com/wenda/detail/346068 https://www.imooc.com/wenda/detail/334012 https://www.imooc.com/wenda/detail/355369 https://www.imooc.com/wenda/detail/339547 https://www.imooc.com/wenda/detail/334661 https://www.imooc.com/wenda/detail/342815 https://www.imooc.com/wenda/detail/349064 https://www.imooc.com/wenda/detail/353418 https://www.imooc.com/wenda/detail/354268 https://www.imooc.com/wenda/detail/334335 https://www.imooc.com/wenda/detail/353634 https://www.imooc.com/wenda/detail/334660 https://www.imooc.com/wenda/detail/335747 https://www.imooc.com/wenda/detail/350729 https://www.imooc.com/wenda/detail/354574 https://www.imooc.com/wenda/detail/333539 https://www.imooc.com/wenda/detail/344004 https://www.imooc.com/wenda/detail/355720 https://www.imooc.com/wenda/detail/336727 https://www.imooc.com/wenda/detail/345254 https://www.imooc.com/wenda/detail/350944 https://www.imooc.com/wenda/detail/354849 https://www.imooc.com/wenda/detail/342183 https://www.imooc.com/wenda/detail/335818 https://www.imooc.com/wenda/detail/340594 https://www.imooc.com/wenda/detail/353433 https://www.imooc.com/wenda/detail/337666 https://www.imooc.com/wenda/detail/347994 https://www.imooc.com/wenda/detail/346257 https://www.imooc.com/wenda/detail/346964 https://www.imooc.com/wenda/detail/352516 https://www.imooc.com/wenda/detail/332047 https://www.imooc.com/wenda/detail/345459 https://www.imooc.com/wenda/detail/355099 https://www.imooc.com/wenda/detail/352428 https://www.imooc.com/wenda/detail/343771 https://www.imooc.com/wenda/detail/345963 https://www.imooc.com/wenda/detail/354395 https://www.imooc.com/wenda/detail/355196 https://www.imooc.com/wenda/detail/339814 https://www.imooc.com/wenda/detail/342307 https://www.imooc.com/wenda/detail/354980 https://www.imooc.com/wenda/detail/355491 https://www.imooc.com/wenda/detail/345147 https://www.imooc.com/wenda/detail/332020 https://www.imooc.com/wenda/detail/349437 https://www.imooc.com/wenda/detail/333903 https://www.imooc.com/wenda/detail/344693 https://www.imooc.com/wenda/detail/351997 https://www.imooc.com/wenda/detail/351307 https://www.imooc.com/wenda/detail/334552 https://www.imooc.com/wenda/detail/351461 https://www.imooc.com/wenda/detail/347653 https://www.imooc.com/wenda/detail/334642 https://www.imooc.com/wenda/detail/334704 https://www.imooc.com/wenda/detail/338965 https://www.imooc.com/wenda/detail/340559 https://www.imooc.com/wenda/detail/351671 https://www.imooc.com/wenda/detail/344049 https://www.imooc.com/wenda/detail/347518 https://www.imooc.com/wenda/detail/350943 https://www.imooc.com/wenda/detail/347967 https://www.imooc.com/wenda/detail/336624 https://www.imooc.com/wenda/detail/332155 https://www.imooc.com/wenda/detail/342962 https://www.imooc.com/wenda/detail/335926
查看完整回答
反对 回复 2021-10-16
?
Hh_happy

TA贡献2条经验 获得超0个赞

你把script的内容放在body地下尝试一下

查看完整回答
反对 回复 2018-08-03
?
Stardust1001

TA贡献261条经验 获得超78个赞

知道啦,哈哈,function,你写错了

查看完整回答
反对 回复 2018-08-03
?
Stardust1001

TA贡献261条经验 获得超78个赞

别骗我,真的在线等?你这内容不全,我也没太认真看,一眼上去,我觉得,你那获取的值到底是不是1,2,3什么的?

查看完整回答
反对 回复 2018-08-03
  • 8 回答
  • 0 关注
  • 2031 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信