window.onload = function () {
//获取文本内容和长度函数
function txtCount(el) {
var val = el.value;
var eLen = val.length;
console.log(el, eLen)
}
var el = document.getElementById('textarea4');
$('#textarea4').bind('input propertychange', function() {
var len = txtCount(this)
});
}