如何使用Javascript或jquery在MVC中获得弹出窗口? $('#btnpoppup2')。单击(函数(){ jQuery.noConflict(); $('#SearchPopupWindow1')。加载(“/Service/ServiceList”, 功能(响应、状态、xhr){ $('SearchPopupWindow1')。对话框('open'); }); });
加载完成后,需要打开对话框 更新代码如何使用Javascript或jquery在MVC中获得弹出窗口? $('#btnpoppup2')。单击(函数(){ jQuery.noConflict(); $('#SearchPopupWindow1')。加载(“/Service/ServiceList”, 功能(响应、状态、xhr){ $('SearchPopupWindow1')。对话框('open'); }); });,javascript,jquery,asp.net-mvc-3,model-view-controller,Javascript,Jquery,Asp.net Mvc 3,Model View Controller,加载完成后,需要打开对话框 更新代码 <script type="text/javascript"> $('#btnpopup2').click(function () { jQuery.noConflict(); $('#SearchPopupWindow1').load("/Service/ServiceList", function (response, status, xhr) {
<script type="text/javascript">
$('#btnpopup2').click(function () {
jQuery.noConflict();
$('#SearchPopupWindow1').load("/Service/ServiceList",
function (response, status, xhr) {
$('#SearchPopupWindow1').dialog('open');
});
});
在这个片段中,
noConflict()
的目的是什么?我认为它会更令人困惑,更有用。
$('#btnpopup2').click(function () {
jQuery.noConflict();
$('#SearchPopupWindow1').load("/Service/ServiceList").dialog('open');
});