Component Configuration.js - 所有支持属性列表 - configuration priority

104 阅读1分钟
  • mockServerList
  • System defined defaults
  • Server wide defaults, read from sap-ui-config.json
  • Properties of the global configuration object window[“sap-ui-config”]
  • A configuration string in the data-sap-ui-config attribute of the bootstrap tag

Created by Jerry Wang, last modified on Sep 14, 2015

configuration.js的位置

configuration的优先级:

例子

  • in the URL : sap-ui-PARAMETER-NAME=“value”
  • in the DOM : data-sap-ui-PARAMETER-NAME=“value”
  • where PARAMETER-NAME is the name of the parameter in lower case.
  • Values of boolean parameters are case insensitive where “true” and “x” are interpreted as true.
    所有支持的parameter列表:

    准备初始化odataModel:

    拿到application里的配置:

    要获取更多Jerry的原创文章,请关注公众号"汪子熙":