다음과 같이 코드 코드를 복사하십시오.
<html>
<헤드>
<title> 제목의 문서 </title>
<script type = "text/javaScript">
함수 aa ()
{{
s = form1.t1.Value;
s = s.replace (// n |/r/g, ""); // ad ad ad는 글로벌 교체품이며, 추가하지 않으면 첫 번째 것을 교체하십시오. .
form1.t1.value = s;
}
</스크립트>
</head>
<body>
<form name = "form1">
<textArea name = "t1"style = "높이 : 74px"> </textarea>
<입력 유형 = "버튼"value = "aa"onclick = "aa ()">
</form>
</body>
</html>