<!
function textCounter(field
{
var str=
str=field
str=str
if (str
{
// field
field
}
}
function getByteOfNum(val
{
var ch
var rs =
var pt = /[^\x
for (var i=
{
ch = val
if (ch
{
bytenum +=
if (bytenum > num)
{
return rs;
}
}else
{
bytenum +=
}
rs += ch;
if (bytenum == num)
{
return rs;
}
}
return rs;
}
//
aspx中調用的代碼
<asp:textbox id=
onkeyup=
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19300.html