无法调用确定的Visibility()-从未看到过pid的连接-无法导航至HTML页面

Niy*_*Ali 5 android jquery-mobile

以下是我成功登录我的Android应用后打开home.html页面的代码。但是,当我单击“登录”按钮时,它将加载相同的index.html页(未打开home.html)。

function check(form)  {
    //the following code checkes whether the entered userid and password are matching
    if(form.password.value == "moleac123") {
        if(form.remember_me.checked) {
            window.localStorage["password_remember"] = "moleac123";
            var date_to_remember = new Date().getTime();
            window.localStorage["date_remember"] = date_to_remember.toString();
        }
        $.mobile.pageLoadErrorMessage = "";
       // window.open('home.html'); //opens the target page while Id & password matches
       window.location="home.html";
    }
    else {
        alert("Invalid Password"); //displays error message
        $.mobile.pageLoadErrorMessage = "";
       // window.open('index.html');
        window.location="index.html";
    }
  }
Run Code Online (Sandbox Code Playgroud)

我在logcat上收到以下错误。(请注意,我的查询移动版本为1.3.2,并且我尝试升级到1.4.5仍然发生相同的问题)

Error:

D/JsMessageQueue? Set native->JS mode to null D/CordovaWebViewImpl? onPageDidNavigate(file:///android_asset/www/home.html)

W/BindingManager? Cannot call determinedVisibility() - never saw a connection for the pid: 20994

D/CordovaWebViewImpl? onPageFinished(file:///android_asset/www/home.html)

W/BindingManager? Cannot call determinedVisibility() - never saw a connection for the pid: 20994

W/BindingManager? Cannot call determinedVisibility() - never saw a connection for the pid: 20994
Run Code Online (Sandbox Code Playgroud)

注意-在Android 4.1.X版本中可以正常使用,在Android5.0中具有此问题

请提出建议,我该如何解决。

drm*_*wer -2

你试过这个吗?在那篇文章的 logcat 中有一些内容BindingManager\xef\xb9\x95 Cannot call determinedVisibility(),所以也许建议的解决方案也会在这里有所帮助?

\n


归档时间:

查看次数:

11946 次

最近记录:

9 年,2 月 前