[一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3519318.html]
1 $("#dialog").dialog({ 2 autoOpen: false, 3 height: 150, 4 width: 200, 5 modal: true, 6 draggable: false, 7 resizable:false, 8 buttons: { 9 "确定": function () { 10 var id = $(this).data("idandpage").split(',')[0]; 11 var page = $(this).data("idandpage").split(',')[1]; 12 location.href = "DataChangesTempOP.aspx?type=pass&id=" + id + "&page=" + page; 13 $(this).dialog("close"); 14 } 15 } 16 }); 17 18 //InputParams 19 $("#dialog").dialog("open").data("idandpage", "190,1");