日期:2014-05-16 浏览次数:20604 次
(function(){
function NavgationUtility()
{
this.init();
}
NavgationUtility.prototype =
{
Init:function(id)
{
this.id = id;
},
getPathContent:function(navid,oContent)
{
return this._getPathContent(navid) + oContent;
},
_getPathContent:function(navid)
{
var item = $("#"+this.id+"_"+navid);
var ret = "";
if(item.length>0)
{
var parentId = item.attr("parentId");
ret += this.getPathContent(parentId);
ret +="<a href='"+ item.attr("href")+"'>"+ item.html() + "</a>" + ">>";
}
return ret.replace("undefined","");
},
getId:function()
{
return this.id;
}
}
debugger
window.nav = NavgationUtility;
})();