TypeError:'undefined'不是函数(评估'$("#wnd_Addparam")..dialog')

6 javascript jquery dialog jquery-ui

我有两个月的例子,我改变了PC.现在这似乎不再起作用了.这是一个应该通过(按下)按钮加载小窗口对话框的示例.但是,它不起作用......这是我的代码:

<html>
<head>
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
  <script type="text/javascript">
// <---- VENTAÑAS DE PARAMETERES---->

var regex,v,l,c,b;
$( "#wnd_Addparam" ).dialog({
            autoOpen: false,
            height: 'auto',
            width: 350,
            modal: true,
            resizable:false,
            buttons: {
                "Add": function() {
                                $( this ).dialog( "close" ); 
                                   },
                Cancel: function() {
                    $( this ).dialog( "close" );
                }
            },
            close: function() {
                $( this ).dialog( "close" );
            }
        });

        $( "#btn_Addpar" ).click(function() {
                $( "#wnd_Addparam" ).dialog( "open" );
            });
$( "#wnd_Paramedit" ).dialog({
            autoOpen: false,
            height: 'auto',
            width: 350,
            modal: true,
            resizable:false,
            buttons: {
                "Accept": function() {
                      $( this ).dialog( "close" );  

                },
                Cancel: function() {
                    $( this ).dialog( "close" );
                }
            },
            close: function() {
                $( this ).dialog( "close" );
            }
        });

        $( "#btn_Pedit" ).click(function() {
                $( "#wnd_Paramedit" ).dialog( "open" );
            });
$( "#wnd_Borpara" ).dialog({
            autoOpen: false,
            height: 'auto',
            width: 300,
            resizable:false,
            modal: true,
            buttons: {
                "Accept": function() {
                    $(this).dialog("close");

                },
                Cancel: function() {
                    $( this ).dialog( "close" );
                }
            },
            close: function() {
                $( this ).dialog( "close" );
            }
        });

        $( "#btn_Deletepara" ).click(function() {
                $( "#wnd_Borpara" ).dialog( "open" );
            });

</script></head>
<!--<form method="POST" id="iformp" name="nformp">-->
<body>
<h3>List of parameters</h3>
<div id="sortparam" >
</div>
 <input type="button" id="btn_Addpar" value="Add"/>
<input type="button" id="btn_Deletepara" value="Delete"/>
<input type="button" id="btn_Pedit" value="Edit"/>
<!--<form>-->

</body>

</html>
Run Code Online (Sandbox Code Playgroud)

请..为什么我的对话框有错误???

Mir*_*ani 1

Now use this code simple....\n\n\n<html>\n    <head>\n     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>\n    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>\n    <script type="text/javascript">\n    // <---- VENTA\xc3\x91AS DE PARAMETERES---->\n    $(document).ready(function() { \n    var regex,v,l,c,b;\n    $( "#wnd_Addparam" ).dialog({\n                autoOpen: false,\n                height: \'auto\',\n                width: 350,\n                modal: true,\n                resizable:false,\n                buttons: {\n                    "Add": function() {\n                                   $( this ).dialog( "close" ); \n                                       },\n                    Cancel: function() {\n                        $( this ).dialog( "close" );\n                    }\n                },\n                close: function() {\n                    $( this ).dialog( "close" );\n                }\n            });\n\n            $( "#btn_Addpar" ).click(function() {\n                    $( "#wnd_Addparam" ).dialog( "open" );\n                });\n\n    });\n    </script>\n    </head>\n    <!--<form method="POST" id="iformp" name="nformp">-->\n    <body>\n    <h3>List of parameters</h3>\n    <div id="sortparam" >\n    </div>\n     <input type="button" id="btn_Addpar" value="Add"/>\n\n    <!--<form>-->\n\n    </body>\n\n    </html>\n
Run Code Online (Sandbox Code Playgroud)\n