您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

functions.web.js 503B

12345678910111213141516
  1. // @flow
  2. export * from './functions.any';
  3. /**
  4. * Loads config.js from a specific remote server.
  5. *
  6. * @param {string} url - The URL to load.
  7. * @returns {Promise<Object>}
  8. */
  9. export async function loadConfig(url: string): Promise<Object> { // eslint-disable-line no-unused-vars
  10. // Return "the config.js file" from the global scope - that is how the
  11. // Web app on both the client and the server was implemented before the
  12. // React Native app was even conceived.
  13. return window.config;
  14. }