标签:name blog 获取 cti length color get on() doc
var genderValue=0; var obj = document.getElementsByTagName("input"); document.getElementById(‘gender‘).onclick=function(){ for(var i=0; i<obj.length; i ++){ if(obj[i].checked && genderValue!=obj[i].value){ genderValue=obj[i].value; // console.log(genderValue) } } }
标签:name blog 获取 cti length color get on() doc
原文地址:http://www.cnblogs.com/pengchengzhong/p/6112842.html