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