首页 > 代码库 > 文本域隐藏省略号...

文本域隐藏省略号...

function eqa(obj,nu){
        var oPa = document.getElementById(obj);
        var sto = oPa.innerHTML;
        if (sto.length>nu) {
            oPa.innerHTML = sto.substring(0, nu)+‘......‘;
        } else{
            oPa.innerHTML=sto;
        };
    }

文本域隐藏省略号...