JQuery移动按钮主页


Problem URL JQuery Mobile button Home

我有两个页面,第一个叫做index.html,有一个登录按钮,用下面的代码将页面更改为conexion.html:

$('#page').live('pagecreate',function(event){
    $("#login").bind("click", function(event) {
        $.mobile.changePage( "conexion.html",{ transition: "flip"});
    });
});

URL更改为

http://localhost/mobile/olapromo//移动/olapromo/conexion.html

在" connection .html"中调用"index.html",代码如下:

<a href="index.html" data-icon="home" data-iconpos="notext" class="ui-btn-right jqm-    home">Home</a> 

当我点击home键时URL变成了

http://localhost/mobile/olapromo//移动/olapromo/index . html

和我不能再访问conexion.html

你不能再访问condition .html是什么意思?你是说当你点击登录按钮时什么也没发生吗?

如果是这样的话;

您正在使用的页面创建处理程序定义在哪里?它是在页面中还是在文档中。准备好了处理程序?

考虑将.bind更改为。live,看看是否可以。