<textarea class="leaveMessage" oninput="if(value.length>76) value=value.substr(0,76)"></textarea>
原链接 http://blog.csdn.net/sunlylorn/article/details/6123355
现在已经支持maxlength = '10'