什么函数可以替代jQT.goTo

发布于 2024-09-29 18:09:28 字数 433 浏览 0 评论 0原文

我正在尝试将为我开发的 jqtouch 应用程序转换为 jquery mobile。

我不知道应该如何转换

showMainMenu: function() {
        Inventory.loadDealers();
        Inventory.enableMenu(false);
        jQT.goTo('#mainmenu');
    },

我尝试过的这段代码

showMainMenu: function() {
        Inventory.loadDealers();
        Inventory.enableMenu(false);
        $('#mainmenu').slideUp('slow', function() {});

    },

I am trying to convert a jqtouch app that was developed for me to jquery mobile.

I don't know how I should be converting this code

showMainMenu: function() {
        Inventory.loadDealers();
        Inventory.enableMenu(false);
        jQT.goTo('#mainmenu');
    },

I tried

showMainMenu: function() {
        Inventory.loadDealers();
        Inventory.enableMenu(false);
        $('#mainmenu').slideUp('slow', function() {});

    },

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

热情消退 2024-10-06 18:09:28

jQuery Mobile 中的“页面”由一个数据角色属性设置为“页面”的元素(通常是 div)组成,其中通常是具有“标题”、“内容”和“角色”的 div 元素。页脚”,每个都包含通用标记、表单和自定义 jQuery Mobile 小部件。

您是否在 div 上设置了数据角色?

A "page" in jQuery Mobile consists of an element (usually a div) with a data-role attribute set to "page", within which ther generally tends to be div elements with roles of "header", "content", and "footer", each containing common markup, forms, and custom jQuery Mobile widgets.

Do you have the data-role set on the div?

潦草背影 2024-10-06 18:09:28
$.mobile.changePage( "#mainmenu", { transition: "slideup"} );

http://code.jquery.com/mobile/latest/demos /docs/api/methods.html

$.mobile.changePage( "#mainmenu", { transition: "slideup"} );

http://code.jquery.com/mobile/latest/demos/docs/api/methods.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文