Commit 1455b247 by doszhang

dos

parent 4b2e6f32
...@@ -621,8 +621,10 @@ function checkIt(bind, maxNum) { ...@@ -621,8 +621,10 @@ function checkIt(bind, maxNum) {
len += 2; len += 2;
} }
if (len >= maxNum) { if (len >= maxNum) {
$("#" + bind).val(v.substr(0, maxNum)) if (i != v.length - 1) {
break; $("#" + bind).val(v.substr(0, i))
break;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment