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;
};
}
时间: 2024-12-27 23:51:25