有劳版主写出来看看啦~谢谢~
啊,这么简单还要代码
[CODE]
<script defer>
var counter=0;
function writeEnter() {
if (counter==20)
{
txt.value+="\n"
counter=0;
}
counter++;
}
</script>
<textarea id=txt rows=10 cols=50 onkeypress="writeEnter()"></textarea>
[/CODE]
啊,这么简单还要代码
[CODE]
<script defer>
var counter=0;
function writeEnter() {
if (counter==20)
{
txt.value+="\n"
counter=0;
}
counter++;
}
</script>
<textarea id=txt rows=10 cols=50 onkeypress="writeEnter()"></textarea>
[/CODE]