為毛這個任務三就是不能出效果
function checkone(){
? ? ? ? ? ? var j=document.getElementById("wb").value;
? ? ? ? ? ? var i=parseInt(j,10);
? ? ? ? ? ? var h=document.getElementsByName("hobby");
? ? ? ? ? ? if(i>1&&i<6){
? ? ? ? ? ? ? ?h[i-1].checked=true;
? ? ? ? ? ? }else{
? ? ? ? ? ? ? ? alert.("輸入有誤!");
? ? ? ? ? ? }
? ? ? ? ?// 任務3
? ? ? ??
? ? ? ? }
2016-12-02
? alert.("輸入有誤!"); alert后面多加了點
2016-12-02
parseInt是什么啊