2

我的网络应用程序中有 4 个或更多页面,我在 ios/android 中看起来类似于页面指示器。现在是否有可能使用 Jquery mobile 或其他一些有效的方式来实现这一点。

我发现以下关于相同要求的问题,因此想知道 Jquery 从那时起是否引入了页面指示器,或者现在有更好的有效方法来实现相同的要求

使用 jQuery Mobile 创建 iOS 页面指示器(点)

4

1 回答 1

0

It can be achieved with some pretty simple programming, put 4 dots (you could use images) in the footer and then with javascript you write something like (pseudocode):

page = get current page
switch(page) {
    case 1:
        highlight dot1
        -make sure all other dots are not highlighted
    break;
    case 2:
        -highlight dot2
        -make sure all other dots are not highlighted
    break;
    etc...
}

I just checked on my iphone and the dot highlightning isn't even animated, so you could just get away with some images or generated dots.

于 2012-07-24T08:06:03.993 回答