Android(安卓)B/S 关于系统兼容性相关问题
16lz
2021-12-04
1. Android OS 4.x 对$.mobile.changePage("main.html"); 不起作用,并且会导致其它的JS 也失效;
要用window.location.href = "main.html"; 来代替;
2. Android OS 4.x 不支持 相对路径,比如:
<a id="gear_btn" data-role="button" data-iconpos="notext"
href="gear.html;" data-icon="gear" data-iconpos="left"
class="ui-btn-right">Gear</a>
可以用以下方式解决:
<a id="gear_btn" data-role="button" data-iconpos="notext"
href="javascript:Main.onGear();" data-icon="gear" data-iconpos="left"
class="ui-btn-right">Gear</a>
js code
onGear : function(){
window.location.href = "gear.html";
},
更多相关文章
- 界面布局
- Android(安卓)编译系统理解:envsetup.sh学习
- Eclipse Android(安卓)project name有错误, source tree无红叉解
- 相对布局控制控件居右显示
- android相对布局实例—登录界面
- Android(安卓)NoteX Q9: PopupWindow setOutsideTouchable 失效?
- Android(安卓)(一) Android(安卓)studio 安装
- Android中hardware源码(android-5.0.2)
- Android中RelativeLayout布局各个xml相对布局属性的介绍和使用