摘要:
function textCounter(field, countfield, maxlimit){ if (field.value.length > maxlimit){ if( field.value.indexOf("\r\n") == maxlimit-1){ field.value = field.value.substring(0, maxlimit-1); }else{ field.value = field.value.substring(0, maxlimit); } }else{ count... 阅读全文