关于window.onload.function问题
var btn=document.getElementById("bbk");
var ppt=document.getElementById("ull");
var cc=document.getElementById("cctv");
function rec() {
var bat=document.createElement("li");
bat.innerHTML=cc.value;
ppt.appendChild(bat);
}
</script>
</head>
<body>
<input id="cctv" type="text"><input id="bbk" type="button" value="33" onclick="rec()"/>
<ul id="ull"></ul>