# GlobalVars **Repository Path**: cnlisn/globalvars ## Basic Information - **Project Name**: GlobalVars - **Description**: GlobalVars - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-04-26 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #GlobalVars Timeout() { GlobalVars.set("false", function (msg) { GlobalVars.toast("set 成功=" + msg, null, null); }, function (msg) { alert("set失败=" + msg); }); var interval = setInterval(function () { GlobalVars.get(function (msg) { // GlobalVars.toast("get 成功=" + msg, null, null); if (msg == "true") { clearInterval(interval); } }, function (msg) { console.log("get 失败=" + msg); }); BaiDuMapPlugin.getPosition(function (msg) { GlobalVars.toast(msg, null, null); }, function (msg) { GlobalVars.toast(msg, null, null); }); }, 8000); }