在SCORM中出现“ LMSFinish = false”时,谁能帮助我如何生成警报消息,当前我已将课程发布为“ SCORM 1.2”软件包。我尝试使用下面的代码,但没有得到反映。
function SCORM_CallLMSFinish(){
var strResult;
WriteToDebug("In SCORM_CallLMSFinish");
SCORM_objAPI = SCORM_GrabAPI();
WriteToDebug("Calling LMS Finish");
strResult = SCORM_objAPI.LMSFinish("");
strResult = strResult + "";
WriteToDebug("strResult=" + strResult);
if (strResult == SCORM_FALSE){
**alert("An error occurred while closing");**
WriteToDebug("Detected failed call to LMSFinish");
SCORM_SetErrorInfo();
WriteToDebug ("Error calling LMSFinish:");
WriteToDebug (" intSCORMError=" + intSCORMError);
WriteToDebug (" SCORMErrorString=" + strSCORMErrorString);
WriteToDebug (" Diagnostic=" + strSCORMErrorDiagnostic);
return false;
}
WriteToDebug("Returning True");
return true;
}
在上面,我的脚本已在** **中提及。