相关疑难解决方法(0)

PhoneGap应用程序无法在Google Ripple上运行

我正在开发一个phoneGap应用程序.当我在浏览器中测试我的应用程序时没有问题.万事如意.但是当我在涟漪中尝试它时,我的javascript无效.详细信息:用户可以登录系统,如果它成功重定向到另一个页面(使用jquery mobile),它在chrome,Internet Explorer和firefox中运行良好.但是在波纹中不起作用.我的代码如下所示:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title></title>
    <link rel="stylesheet" href="css/jquery.mobile-1.3.2.css">

    <script src="js/jquery-1.10.2.js"></script>
    <script src="js/jquery.mobile-1.3.2.js"></script>
    <script src="js/jquery.base64.js"></script>
    <script src="js/cordova.js"></script>
    <script type="text/javascript">
        $(function() {
            var credentials = 'admin:adminabc';
            var authType = "Basic " + credentials;
            $('#loginForm').submit(function() {
                $.ajax({
                    type : "GET",
                    url :  'http://localhost:30673/api/user/Get',
                    data : 'json',
                    beforeSend : function(xhr) {
                         xhr.setRequestHeader("Authorization", authType);
                    },
                    success : function(data, textStatus) {
                        $.mobile.changePage("#menu", {
                            transition : "slideup"
                        });
                    }
                });
            });

            $("#aboutUs").click(function() …
Run Code Online (Sandbox Code Playgroud)

jquery ripple cordova

9
推荐指数
1
解决办法
5727
查看次数

标签 统计

cordova ×1

jquery ×1

ripple ×1