2014-04-01 87 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

相关问题