标签:android io ar os sp java on bs cti
页面加载完后自动隐藏浏览器地址栏:
$(document).ready(function() {
setTimeout(scrollTo, 200, 0, 1);
});
Android: 对锚点支持有限,只能跳转一次
ios : 对锚点支持和pc浏览器一致替代方案: javascript: scrollTo(0, 1);
根据HTML5规范获取用户经纬度信息:
var geol;
try {
if (typeof(navigator.geolocation) == ‘undefined‘) {
geol = google.gears.factory.create(‘beta.geolocation‘);
} else {
geol = navigator.geolocation;
}
} catch (error) {
//alert(error.message);
}
1.Web方式
<a href="tel:4000086666">
电话预订:4000086666
</a>
2. wap(主要hack QQ和UC浏览器)<a href="wtai://wp/mc;4000086666">
电话预订:4000086666
</a>
1.Java获取
String userAgent = request.getHeader("user-agent");
QQ浏览器:
Var qq = request.getHeader(“Q-UA”);
2.JavaScript获取var appV = navigator.appVersion.toLowerCase();
var userAgentStr = navigator.userAgent;
标签:android io ar os sp java on bs cti
原文地址:http://www.cnblogs.com/nc-blog/p/4128354.html