返回对象在当前级别中是第几个元素
时间:2011-01-18 来源:webooxx
//语法:prev(element)
//参数:element对象
//返回:对象在当前级别中是第几个元素,从1开始
//2010-08-26 15:13:55
function prev(elem,cont) {
if(!cont){cont=1}
elem = elem.previousSibling;
if(elem){return prev(elem,(cont+1))}
return cont
}
prev($("ext-gen232"))
相关阅读 更多 +
排行榜 更多 +









![《小朋友齐打交2复刻版》 v2.14d升级档+未加密补丁[TENOKE]](https://images.phpfans.net/img/f1/20251229/logo_69527f2a9daf81.jpg)
