IBM Worklight在logcat上获取错误,因为无法读取未定义的属性“APP_SERVICES_URL”

时间:2015-02-09 11:34:13

标签: ibm-mobilefirst

我的对象就像

  

WL.AppProperty = {       AIR_ICON_16x16_PATH:" AIR_ICON_16x16_PATH",       AIR_ICON_128x128_PATH:" AIR_ICON_128x128_PATH",       DOWNLOAD_APP_LINK:" DOWNLOAD_APP_LINK",       环境:"环境",       APP_DISPLAY_NAME:" APP_DISPLAY_NAME",       APP_LOGIN_TYPE:" APP_LOGIN_TYPE",       APP_VERSION:" APP_VERSION",       高度:"高度",       IID:" IID",       LATEST_VERSION:" LATEST_VERSION",       LOGIN_DISPLAY_TYPE:" LOGIN_DISPLAY_TYPE",       LOGIN_REALM:" LOGIN_REALM",       MAIN_FILE_PATH:" MAIN_FILE_PATH",       SHOW_IN_TASKBAR:" SHOW_IN_TASKBAR",       THUMBNAIL_IMAGE_URL:" THUMBNAIL_IMAGE_URL",       WELCOME_PAGE_URL:" WELCOME_PAGE_URL",       宽度:" WIDTH",       WORKLIGHT_ROOT_URL:" WORKLIGHT_ROOT_URL",       APP_SERVICES_URL:" APP_SERVICES_URL",       WLCLIENT_TIMEOUT_IN_MILLIS:" WLCLIENT_TIMEOUT_IN_MILLIS" };

//短别名: WL.AppProp = WL.AppProperty;

在以下行获取错误:

  

var reachabilityUrl =   WL.Client.getAppProperty(WL.AppProp.APP_SERVICES_URL)+"到达&#34 ;;

1 个答案:

答案 0 :(得分:0)

  1. 没有WL.AppProp
  2. 这样的东西
  3. 没有此类属性APP_SERVICES_URL可用。
  4. 有关可用属性和正确的API使用,请参阅getAppProperty的文档。