⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dummyapi.js

📁 很棒的在线教学系统
💻 JS
字号:
/** Dummy SCORM API*/ function GenericAPIAdaptor(){        this.LMSInitialize = LMSInitializeMethod;        this.LMSGetValue = LMSGetValueMethod;        this.LMSSetValue = LMSSetValueMethod;        this.LMSCommit = LMSCommitMethod;        this.LMSFinish = LMSFinishMethod;        this.LMSGetLastError = LMSGetLastErrorMethod;        this.LMSGetErrorString = LMSGetErrorStringMethod;        this.LMSGetDiagnostic = LMSGetDiagnosticMethod;}/** LMSInitialize.*/function LMSInitializeMethod(parameter){return "true";}/** LMSFinish.*/function LMSFinishMethod(parameter){return "true";}/** LMSCommit.*/function LMSCommitMethod(parameter){return "true";}/** LMSGetValue.*/function LMSGetValueMethod(element){return "";}/** LMSSetValue.*/function LMSSetValueMethod(element, value){return "true";}/** LMSGetLastErrorString*/function LMSGetErrorStringMethod(errorCode){return "No error";}/** LMSGetLastError*/function LMSGetLastErrorMethod(){return "0";}/** LMSGetDiagnostic*/function LMSGetDiagnosticMethod(errorCode){return "No error. No errors were encountered. Successful API call.";} var API = new GenericAPIAdaptor;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -