由于网页加载而重置插件 - 问题 [英] Resetting plugins due to page load - Issue

查看:90
本文介绍了由于网页加载而重置插件 - 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从2.3 Xcode升级到Phonegap 2.5后,此消息由于页面加载重置插件挂起。

After upgrading to Phonegap 2.5 from 2.3 Xcode hangs on this message "Resetting plugins due to page load".

我已查看所有这些答案:

I have reviewed all these answers:

在Phonegap 2.5中加载外部网址时出错

Cordova 2.5.0:有关iOS插件的查询

无法加载网页错误:框架加载中断

它告诉你将cordova-2.5.0.js移动到根目录(与index.html相同的级别),但这didn不为我解决问题。

which tell you to move cordova-2.5.0.js to the root (same level as index.html) but this didn't fix the issue for me.

我最初的文件在js / cordova-2.5.0.js,我的索引文件有相同的引用。

I originally had the file in "js/cordova-2.5.0.js" and my index file has the same reference. I made the change as above and I got the same failed result.

在使用create命令升级并执行过程后,我使用了

After using the "create" command to upgrade and going through the process I've used

cordova-2.5.0.js
/cordova-2.5.0.js
js / cordova-2.5.0.js

"cordova-2.5.0.js" "/cordova-2.5.0.js" "js/cordova-2.5.0.js"

我每次更改时都执行硬删除。

I'm performing a "hard clean" every time I change it too.

推荐答案

您使用的是Jquery Mobile还是类似的?我有一个相同的问题,因为我有一个登录页面,如果你已经登录,它会跳过。

Are you using Jquery Mobile or something similar? I had the same issue as i had a login page which it would skip if you were already logged in.

看起来有一个问题,从初始屏幕

Looks like there is an issue when fading from the splash screen and doing a hash change at the same time.

我之前的代码

$('#LoginPage').live('pagebeforeshow', function(event) {
    if(window.localStorage.getItem("UserID"))
    {
        $.mobile.changePage("#MainPage");
        appRefresh();
    }
});

我的代码

$('#LoginPage').live('pagebeforeshow', function(event) {
    if(window.localStorage.getItem("UserID"))
    {
        $.mobile.changePage("#MainPage", {changeHash: false});
        appRefresh();
    }
});

现在为我工作。

这是一个问题日志

https://issues.apache.org/jira/browse/CB-2602

这篇关于由于网页加载而重置插件 - 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆