var config = (function(global){ global.apigateway = 'http://localhost'; // 设置通过API网关访问 //global.resourceUrl = 'http://localhost'; // 媒体文件资源 global.iotCenterUrl = 'http://localhost/IoTCenter'; // IoT服务API global.hubUrl = 'ws://localhost/IoTCenter/hub?group=page'; // 设备WebSocket访问地址 return global; })(window.config||{}); console.log('config init');