jquery - 未捕获的类型错误 : Object [object Object] has no method 'popup'

标签 jquery css jquery-mobile-popup

我一直在尝试使用 $('#partsPopup').popup("close"); 关闭 jquery 弹出窗口。但它给了我 no method 弹出错误。这是我遵循的脚本顺序。请帮我。谢谢

<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>

最佳答案

您只需要包含 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>

关于jquery - 未捕获的类型错误 : Object [object Object] has no method 'popup' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22792375/

相关文章:

jquery - 如何在 css 或 jquery 中为平铺/马赛克 div 布局使用一个背景

javascript - 当标题为空时停止触发 PopOver

html - 带有连接节点的线条的 CSS TreeView

javascript - Jquery - 一个 AJAX 调用的多个函数调用

javascript - float 菜单 CSS/Javascript 问题

android - JQuery Mobile 在 Android 上看到黑色覆盖 block

javascript - jQuery Mobile 弹出窗口不会在页面导航后显示,仅在硬刷新或返回同一页面后显示

javascript - 从 ajax 响应中获取变量值

jquery - 通过外部拖放将事件添加到 Fullcalendar 时,项目无法获取 id