where is os type and version determined for a ui5 html
2023-09-14 09:02:42 时间
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:
如果按照source code搜索,发现是在如下line 41440里将os 的type和version通过jQuery API设置到html dom node上。
但是,在如下dbg.js file里对OS操作的相关function设置断点,却发现runtime时断点根本无法触发。
这是因为OS type的检测是在sap-ui-core.js file内触发的:
callstack:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":