hobby[i].type是存在的,是否存在hobby[i].id這種方法?
function?checkone(){
????????????var?j=document.getElementById("wb").value;
???????var?hobby=document.getElementsByName("hobby");
???????for(var i=0;i<hobby.length;i++){
???????????if(parseInt((hobby[i].id).substr(-1,1))==j){
???????????????document.write(hobb[i].innerHTML);
???????????????hobby[i].checked=ture;
???????????}
???????}
2015-09-09
存在。