<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><script>window.onload=function(){ document.getElementById("as").onKeyPress=function(e){ if(!e) e=window.event; if(e.keyCode){keyCode=e.keyCode;}else {keyCode=e.which;} string=String.fromCharCode(keyCode); document.getElementById("sa").innerHTML+=string; }}</script></head><body id="as"><div id><p id="sa;">df</p></div></body></html>怎么运行不起呢?
添加回答
举报
0/150
提交
取消