我的JavaScript代码有错误:
function OpenUrl(){
projContext = PS.ProjectContext.get_current();
ProjectID =(getQueryVariable("ProjUid"));
var projects = projContext.get_projects();
project = projects.getByGuid(ProjectID);
projContext.executeQueryAsync(GetProject, QueryFailed);
}
function GetProject(){
ProjectName=project.get_name();
projContext.load(ProjectName);
projContext.executeQueryAsync(GetProjectName, QueryFailed);
}
但是我有以下错误消息: 属性或字段“名称”尚未初始化。尚未请求或尚未执行请求。可能需要明确要求
有什么想法我做错了吗?
谢谢您的帮助:)