$(".planContent").bind("propertychange", function(e){
if($(this).val().length>textAreaLimit){
$(this).val($(this).val().substring(0,textAreaLimit));
}
})
$(".planContent").bind("input", function(e){
if($(this).val().length>textAreaLimit){
$(this).val($(this).val().substring(0,textAreaLimit));
}
})
onpropertychange 是ie中的事件 oninput是其他浏览器的事件。 暂时在ie ff 谷歌上面测试没问题。