SAP UI5

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

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

Wechat applets

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



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

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: