$.ajax({
url : ELMS_API.lmsLocation,
data : jQuery.param(jsonParam),
async : false,
type : "GET",
dataType : "json",
success : function(data) {
ELMS_API.setCurrentAttemptNum(data[0].currentAttemptNum);
ELMS_API.setCurrentCourseUnitId(data[0].currentCourseUnitId);
ELMS_API.setCurrentLearnStatus(data[0].currentLearnStatus);
ELMS_API.setCurrentLearnTime(data[0].currentLearnTime);
ELMS_API.setLastLocation(data[0].currentLocation);
ELMS_API.setCurrentLocation(data[0].currentLocation);
ELMS_API.setSuspendData(data[0].suspendData);
ELMS_API.setCurrentSignUpId(data[0].currentSignUpId);
ELMS_API.setLearnResultId(data[0].learnResultId);
ELMS_API.setCswLearnResultId(data[0].cswLearnResultId);
ELMS_API.setTotalTime(data[0].totalTime);
ELMS_API.setCompleteTime(data[0].completeTime);
ELMS_API.setStartDate(new Date());
ELMS_API.setInitializedState(true);
ELMS_API.lmsErrorManager.clearCurrentErrorCode();
}
});
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/76997.html
標籤:JavaScript
