Jquery UI dialog 传参

时间:2024-09-20 11:33:44

[一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3519318.html]

  $("#dialog").dialog({
autoOpen: false,
height: ,
width: ,
modal: true,
draggable: false,
resizable:false,
buttons: {
"确定": function () {
var id = $(this).data("idandpage").split(',')[];
var page = $(this).data("idandpage").split(',')[];
location.href = "DataChangesTempOP.aspx?type=pass&id=" + id + "&page=" + page;
$(this).dialog("close");
}
}
}); //InputParams
$("#dialog").dialog("open").data("idandpage", "190,1");