<script language="javascript">
function show(){
document.getElementById("aa").innerHTML="<input type='text' id='a'/><input type='button' onclick='post()' />";
}
function post(){
var xx = escape(document.getElementById("a").value);
alert xx;
}
</script>
</head><body>
<input type="button" onclick="show()" />
<div id="aa"></div>
</body>
</html>
function show(){
document.getElementById("aa").innerHTML="<input type='text' id='a'/><input type='button' onclick='post()' />";
}
function post(){
var xx = escape(document.getElementById("a").value);
alert xx;
}
</script>
</head><body>
<input type="button" onclick="show()" />
<div id="aa"></div>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货