Cordova JQuery错误VS2015:异常:无法调用未定义的方法“concat” [英] Cordova JQuery Error VS2015: Exception: Cannot call method 'concat' of undefined

查看:680
本文介绍了Cordova JQuery错误VS2015:异常:无法调用未定义的方法“concat”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到这个错误在VS当我加载与jquery.mobile html:

I'm getting this Error in VS when i load an html with jquery.mobile:


异常:无法调用方法'concat 'of undefined

Exception: Cannot call method 'concat' of undefined

jquery.mobile-1.4.5js

jquery.mobile-1.4.5js

本教程: https://wordpress.org/support/topic/-this-xml-file-does-not-appear-to-have-any-style-information-associated
开始使用jQuery 。

I followed this tutorial: https://wordpress.org/support/topic/-this-xml-file-does-not-appear-to-have-any-style-information-associated for getting started with jQuery.

这是一个html抛出此异常的示例:

This is an example of an html throwing this exception:

<!DOCTYPE html>
<html>
<head>
    <!--
        Customize the content security policy in the meta tag below as needed. Add 'unsafe-inline' to default-src to enable inline JavaScript.
        For details, see http://go.microsoft.com/fwlink/?LinkID=617521
    -->
    <!--<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: http://api.openweathermap.org https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">-->

    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
    <link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" />
    <link rel="stylesheet" type="text/css" href="css/bb_Performance_Test_Page.css">
    <title>Performance</title>
</head>
<body>
    <div data-role="header" class="header">
        <h1 id="app-title">Performance</h1>
    </div>

    <button name="bb_prime_Button"
            onClick="bb_prime_Button_Click_Event()">
    Get Prime
    </button>
    <div class="prime">
        noData
    </div>
    <div class="time">
        noData
    </div>

    <script src="scripts/jquery-3.1.0.min.js"></script>
    <script src="scripts/jquery.mobile-1.4.5.min.js"></script>
    <script type="text/javascript" src="cordova.js"></script>
    <script type="text/javascript" src="scripts/platformOverrides.js"></script>
    <script type="text/javascript" src="scripts/bb_Performance_Test_Page.js"></script>

</body>
</html>

我使用Visual Studio 2015,一个Hybrid(Cordova)应用程序项目,JQuery3.1.0和JQuery .mobile.1.4.5

I'm using Visual Studio 2015, an Hybrid (Cordova) App Project, JQuery3.1.0 and JQuery.mobile.1.4.5

推荐答案

jquery.mobile-1.4.5 不与 jquery-3.1.0 .Use jquery-2.2.4 版本兼容。您可以从这里下载链接

Some functions of jquery.mobile-1.4.5 not be compatible with jquery-3.1.0 .Use jquery-2.2.4 version . You can download from here link

这篇关于Cordova JQuery错误VS2015:异常:无法调用未定义的方法“concat”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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