JAVA、PHP、前端、APP、网站开发 - 开发技术学习

开发技术学习 » 前端设计 » scorm课件分析

scorm课件分析

此文被围观2270日期: 2018-11-06 分类 : 前端设计  标签:  ··

scorm目前长见版本是1.2   2004两个版本。

相应的api差异是LMS前缀。

function Scorm2004(){
    function LMSInitializeMethod(parameter){
        console.info("Initialize", parameter)
        return "true";
    }
    
    function LMSFinishMethod(parameter){
        console.log(parameter)
        return "true";
    }
    
    function LMSCommitMethod(parameter){
        console.log(parameter)
    
        return "true";
    }
    
    function LMSGetValueMethod(element){
        var _this = _self;
        console.info("GetValue:", _this)
        // console.log(element)
    
    }
    
    function LMSSetValueMethod(element, value){
        console.log(arguments)
        return "true";
    }
    
    function LMSGetErrorStringMethod(errorCode){
        console.log(errorCode)
        return "No error";
    }
    
    function LMSGetLastErrorMethod(){return "0";}
    
    function LMSGetDiagnosticMethod(errorCode){
        console.log(errorCode)
        return "No error. No errors were encountered. Successful API call.";
    }
    
    this.Initialize = LMSInitializeMethod;
    this.GetValue = LMSGetValueMethod;
    this.SetValue = LMSSetValueMethod;
    this.Commit = LMSCommitMethod;
    this.Finish = LMSFinishMethod;
    this.GetLastError = LMSGetLastErrorMethod;
    this.GetErrorString = LMSGetErrorStringMethod;
    this.GetDiagnostic = LMSGetDiagnosticMethod;
}


还有api的定义

window.API_1484_11 = new Scorm2004(""); //2004
window.API = new SCORMapi1_2(""); //1.2


站点声明:部分内容源自互联网,为传播信息之用,如有侵权,请联系我们删除。

© Copyright 2011-2024 www.kfju.com. All Rights Reserved.
超级字帖 版权所有。蜀ICP备12031064号