Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS中如何做跳转? #198

Open
kocokolo opened this issue Jan 11, 2016 · 2 comments
Open

JS中如何做跳转? #198

kocokolo opened this issue Jan 11, 2016 · 2 comments

Comments

@kocokolo
Copy link

三个页面,A,B,C

A->B->C or A->C

C页面是一个表单页面,期望的是:

点C中的保存按钮,提交保存成功后,自动跳转回A页面

请问如何实现呢? Mobilebone.transition?
Mobilebone.transition(page_in, document.querySelector(".in." + Mobilebone.classPage), false, {
id: hash,
history: false,
container: null
});

十分感谢,另外感谢MobileBone,为项目省劲不少呢。

@kocokolo
Copy link
Author

Mobilebone.transition? 可能是使用方式不对,第一次能切换到A,下次再也进不到C页面了。

@kocokolo
Copy link
Author

临时用了这个方法,设置一个为display:none

$("#anchorHome").trigger("click");

    $("#anchorHome").on("click", function (e) {
        Mobilebone.handleTapEvent(e);
    })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant