jQuery Post

<a href="Javascript:void(0)" onclick="Delete(@id)">删除</a>

<script>
function Delete(id) {
if (confirm('确定是否删除?') == true) {
$.post('Delete', { id: id }, function (rs) { if (rs == "1") location.reload() });
}
}
</script>

posted @ 2015-07-17 13:49  ahuo  阅读(259)  评论(0编辑  收藏  举报