2016-07-28 18 views
2

我得到這個錯誤VS法「CONCAT」當我下載一個HTML網頁與jquery.mobile:科爾多瓦JQuery的錯誤VS2015:異常:無法調用未定義

例外情況:無法調用「CONCAT」未定義

jquery.mobile-1.4.5js

的我跟着這個教程:https://wordpress.org/support/topic/-this-xml-file-does-not-appear-to-have-any-style-information-associated 入門使用jQuery。

這是一個html拋出這個異常的例子:

<!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年,在混合(科爾多瓦)應用項目,JQuery3.1.0和JQuery.mobile.1.4.5

回答

3

jquery.mobile-1.4.5的部分功能與jquery-3.1.0不兼容。請使用jquery-2.2.4版本。你可以從這裏下載link

+0

謝謝,這解決了這個問題! – Jonas

+0

歡迎@jonas .. – Homen

相關問題