天天看点

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时断点根本无法触发。

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

where is os type and version determined for a ui5 html

callstack:

where is os type and version determined for a ui5 html

继续阅读