<textarea id="id1">dddd</textarea>
<script>
function check(){
if(id1.value.length<70
return true;
else
return false;
}
</script>
<script>
function check(){
if(id1.value.length<70
return true;
else
return false;
}
</script>
调试欢乐多
String.prototype.Trim = function()
{
var regEx = /\s*/g;
return this.replace(regEx,'');
}
<textarea id="id1">dddd </textarea>
<script>
function check(){
if(document.getElementById("id1").value.Trim.length <70)
return true;
else
return false;
}
</script>