SAP UI5和微信小程序框架里的全局变量

SAP UI5

in global variable sap.ui there are many useful utility service available, such as current browser and os information.


SAP UI5和微信小程序框架里的全局变量


and use sap.ui.getCore().byId, we can get any UI5 control instance by its id:


SAP UI5和微信小程序框架里的全局变量


微信小程序

wx for Wechat mini program is as sap.ui for SAP UI5:


SAP UI5和微信小程序框架里的全局变量SAP UI5和微信小程序框架里的全局变量



__wxConfig is another useful global variable for debugging purpose, cannot be used in mini program itself unfortunately.


SAP UI5和微信小程序框架里的全局变量

上一篇:SAP UI5和angular里的常量定义


下一篇:9.python之异常处理