// 在浏览器 window 对象中新建名为 APP 的容器变量, 用于存放平台的全局变量 window.APP = {}; // 全局配置 window.APP.configure ={ // 应用上下文路径 webContextPath: '[(@{/})]'.startsWith('[')? '/' : '[(@{/})]', // 默认后端 API 请求的服务地址前缀 apiContextPaths: { DEFAULT: '[(@{/})]'.startsWith('[') ? 'http://localhost:8080/' : '[(@{/})]' } };