function getObject(e) {
     return (typeof e == 'object') ? e : document.getElementById(e);
  }
    function butqd_check() {
        if (getObject('tt').value == "") {
            alert("请填写内容!");
            getObject('tt').focus();
            return false;
        }
    }
现在是判断是否有内容!我改如何判断字符串长度呢? 不能小于2个汉字大于10个汉字呀!
我是JS一个菜鸟 请高手指点