where is os type and version determined for a ui5 html

Created by Jerry Wang, last modified on Jun 27, 2015

win8

Device

version

Detection

operating

system

navigator

userAgent

Android

iPhone

BlackBerry

所有的ui5 html page的source code里都有OS 的type及version:

where is os type and version determined for a ui5 html


如果按照source code搜索,发现是在如下line 41440里将os 的type和version通过jQuery API设置到html dom node上。

where is os type and version determined for a ui5 html


但是,在如下dbg.js file里对OS操作的相关function设置断点,却发现runtime时断点根本无法触发。

where is os type and version determined for a ui5 html



这是因为OS type的检测是在sap-ui-core.js file内触发的:

where is os type and version determined for a ui5 htmlwhere is os type and version determined for a ui5 html

callstack:


where is os type and version determined for a ui5 html

上一篇:UI5 setModel 的核心逻辑


下一篇:sap.ca.ui.utils.busydialog scenario discussion