gpt4 book ai didi

jQuery手机差距: Split view using asyraf9 example not working

转载 作者:行者123 更新时间:2023-11-29 16:14:07 25 4
gpt4 key购买 nike

我想在 iPad 中使用 jQuery Mobile 和 PhoneGap 实现 Split View。许多网站都推荐了 asyraf9 的 https://github.com/asyraf9/jquery-mobile/

我已经下载了 zip 文件,里面有很多文件。在文件夹 demos\experiments\ 中,我看到了一个“splitview”目录。我使用该目录的内容作为引用。

我已经在我的 www 文件夹中添加了所有使用 Split View文件夹中的文件的文件。它仅显示如下所示的 View ,但不显示 Split View

而index.htms中的部分代码在我们使用“© CS8”时发生了如下变化

“© CS8”中的任何语法问题

enter image description here

其中哪个文件将用作 Split View的插件..?

当我使用它的 Split View index.html 文件时,它不显示 Split View

它就像一个段与表格 View 而不是 Split View竞争

enter image description here怎么了

最佳答案

要使其适用于 splitsview.. 在 Splitsview.js 文件中制作

$.support.splitview =($query || ($.mobile.browser.ie && $(this).width() >= 480)) 
&& $.mobile.ajaxEnabled;

as(注释右侧并执行 $.support.splitview = 1;)

$.support.splitview = 1;//($query || ($.mobile.browser.ie && $(this).width() >= 480)) 
&& $.mobile.ajaxEnabled;

然后 spliview 将适用于任何尺寸的手机。

关于jQuery手机差距: Split view using asyraf9 example not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10784334/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com