<a href="?op=del" οnclick="if(confirm('删除?')) return op(this,'g'); return false">删除</a>
function op(e,id) {
window.location.href = $(e).attr("href") + "&id=" + id;
return false;
}
window.location.href = XXX.aspx?op=del 会根据本页面自动补全。
<a href="?op=del" οnclick="if(confirm('删除?')) return op(this,'g'); return false">删除</a>
function op(e,id) {
window.location.href = $(e).attr("href") + "&id=" + id;
return false;
}
window.location.href = XXX.aspx?op=del 会根据本页面自动补全。