js中英文字符串相关操作
<br>限 70 个字符? 已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字
</td>
<script>
function textLimitCheck(thisArea, maxLength){
if (thisArea.value.length > maxLength)
{
??? alert(maxLength + ' 个字限制. \r超出的将自动去除.');
??? thisArea.value = thisArea.value.substring(0, maxLength);
??? thisArea.focus();
}
/*回写span的值,当前填写文字的数量*/
messageCount.innerText = thisArea.value.length;
}
</script>