你绑定onclick事件啊,你写的就是一个执行语句,又不是事件。这样写试试。<body>
<div id = "aa">
<label><input type = "radio" name = "a" value = "1"/>aaaa</label>
<label><input type = "radio" name = "a" value = "2" checked = "true"/>bbbb</label>
</div>
</body>
<script>
document.getElementById("aa").onclick = function(e){
e = e || window.event;
var target = e.srcElement || e.target,
    tagName = target.tagName.toLowerCase();

if(tagName == "input" && target.value == 2){
alert("222");
}
}
</script>
</html>