• 2022-06-07
    分析以下JavaScript程序var x=prompt(“请输入1-5的数字!”,“”);switch (x)case “1”:alert(“one”);case “2”:alert(“two”);case “3”:alert(“three”);case “4”:alert(“four”);case “5”:alert(“five”);default:alert(“none”);运行以上程序,在提示对话框中输入“4”,依次弹出的对话框将输出:
    A: four,none
    B: four,five,none
    C: five
    D: five,none
  • 举一反三