一切正常.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title> New Document </title>
</head> <body>
<textarea id="txt" style="width:500px;height:300px">1111111</textarea>
<input type="button" onclick="ck()" value="submit">
<script type="text/javascript">
function ck(){
document.getElementById("txt").value = document.getElementById("txt").value + "\n\naaa";
alert(document.getElementById("txt").value);
}
</script> </body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title> New Document </title>
</head> <body>
<textarea id="txt" style="width:500px;height:300px">1111111</textarea>
<input type="button" onclick="ck()" value="submit">
<script type="text/javascript">
function ck(){
document.getElementById("txt").value = document.getElementById("txt").value + "\n\naaa";
alert(document.getElementById("txt").value);
}
</script> </body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货