摘要: 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... 阅读全文
posted @ 2013-12-11 09:44 hanyingme 阅读(251) 评论(0) 推荐(0) 编辑