Jquery对话框关闭操作不正确


Jquery Dialog Close not worked correctly

你好,伙计们:我正试图在Razor Mvc中使用Jquery制作弹出窗口4,弹出操作正确,但当我按下关闭"x"时出现问题再按一下让弹出窗口再次出现jquery重定向到新页面包含当我刷新页面时对话框的内容,以及让对话框再次运行

$("#dialog-edit").dialog({
         title: 'Card Types',
         autoOpen: false,
         resizable: false,
         dialogClass: 'CreateClass',
         closeOnEscape: false,
         width: 400,
         show: { effect: 'drop', direction: "up" },
         modal: true,
         draggable: false,
         open: function (event, ui) {
             $(".ui-dialog-titlebar-close").show();
             $(this).load(url);
         }
     });
  $("#lnkCreate").live("click", function (e) {
         //e.preventDefault(); //use this or return false
        // 
         url = $(this).attr('href');
         $("#dialog-edit").dialog('open');
         return false;
     });

答案是我在对话框中加载的部分视图包含

@*<script src="~/Scripts/jquery-1.7.1.min.js"></script>

当我被删除时,一切正常