2014-04-01 136 views
2

我一直在試圖關閉使用$('#partsPopup')的jquery彈出窗口。但它給了我沒有方法彈出錯誤。這是我遵循的腳本順序。請幫幫我。由於Uncaught TypeError:Object [object Object] has no method'popup'

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" /> 
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> 
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> 
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.3.2.min.css" /> 
<link rel="stylesheet" type="text/css" href="css/index.css" /> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> 
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script> 
+4

你爲什麼加載'jquery'兩次? – raina77ow

回答

2

你只需要包括jQuery的一次,儘量去除版本1.10.2這裏:

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" /> 
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.3.2.min.css" /> 
<link rel="stylesheet" type="text/css" href="css/index.css" /> 
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> 
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> 
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script> 
+0

感謝哥們,它工作:) – user3393032

相關問題