本人未入门菜鸟 哪位大神能帮我看看为什么选中不了
今天我牙疼 2018-05-31 05:06:49 <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>javascirpt1</title>
<script>
window.onload=function ()
{
var oBtn1=document.getElementById('btn1');
var aCh=document.getElementById('ipu');
oBtn1.onclick=function ()
{
aCh.checked=true;
};
};
</script>
</head>
<body>
<input id="btn1" type="button" value="选中"><br>
<input id="ipu" type="checkbox"><br>
</body>
</html>