Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery ui jQuery UI对话框类型错误:$(…)。对话框不是函数_Jquery Ui_Jquery Ui Dialog - Fatal编程技术网

Jquery ui jQuery UI对话框类型错误:$(…)。对话框不是函数

Jquery ui jQuery UI对话框类型错误:$(…)。对话框不是函数,jquery-ui,jquery-ui-dialog,Jquery Ui,Jquery Ui Dialog,“我的UI”对话框不时工作,但通常会引发以下错误: TypeError: $(...).dialog is not a function 我不知道为什么会这样。这是我的.js代码: 可能是ajax调用导致的?这是my.html: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="styleshee

“我的UI”对话框不时工作,但通常会引发以下错误:

 TypeError: $(...).dialog is not a function
我不知道为什么会这样。这是我的.js代码:

可能是ajax调用导致的?这是my.html:

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="css/custom.css">
    <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css" />
    <script src="js/custom.js"></script>
</head>
<body>
<div id="dialog_box_hypo" title="Operátori HYPO"></div>
<div id="dialog_box_kk" title="Operátori KK"></div>
</body>
</html>

有人知道吗


提前感谢

您在什么情况下会出现此错误?
js/custom.js
中是否存在冲突代码。我没有在您的HTML中看到
$(“#hypo_____统计数据”)
$(“#kk_____统计数据”)
。请编辑您的帖子并进一步澄清此问题。无法复制此问题。此处测试:
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="css/custom.css">
    <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css" />
    <script src="js/custom.js"></script>
</head>
<body>
<div id="dialog_box_hypo" title="Operátori HYPO"></div>
<div id="dialog_box_kk" title="Operátori KK"></div>
</body>
</html>