//1.打开窗口
function WinOpen(url, heightV, widthV) {
var iTop2 = (window.screen.availHeight - 20 - heightV) / 2;
var iLeft2 = (window.screen.availWidth - 10 - widthV) / 2;
var params = 'menubar:no;dialogHeight=' + heightV + ';dialogWidth=' + widthV + ';dialogLeft=' + iLeft2 + 'px;dialogTop=' + iTop2 + 'px;resizable=yes;scrollbars=0;resizeable=0;center=yes;location:no;status:no'
window.showModalDialog(url, window, params);
}
//2.删除JQUERY.AJAX操作
function DelAtt(aid, pid) {
if (confirm('确定要删除吗?')) {
$.ajax({
url: 'Ajax.aspx',
type: 'post', //数据发送方式
dataType: 'html', //接受数据格式 (这里有很多,常用的有html,xml,js,json)
data: { type: 'DelAtt', aid: aid, pid: pid }, //要传递的数据
async: false,
success: function (msg) { //成功
if (msg != "") {
$("#tdAtt").html(msg);
}
}
});
}
}