/** * Created by Mai on 2017/3/10. */ $(function () { var getFullPathHtml = function (proj) { var fullPath = [], i, pm = '项目管理', angleRight = ''; fullPath.push(pm); for (i = 0; i < proj.fullFolder.length; i++) { fullPath.push(angleRight, proj.fullFolder[i]); } fullPath.push(angleRight, proj.name); return fullPath.join(''); }; CommonAjax.post('/pm/api/getProject', {"user_id": userID, "proj_id": scUrlUtil.GetQueryString('project')}, function (data) { if (data) { $('#fullpath').html(getFullPathHtml(data)); } }); });