Ajax中用layer弹出层并刷新页面的方法


$.post("DeleteHandler.ashx", { "table": "Contents", "ID": vals }, function (data) {
  layer.alert(data, function () {
    window.location="Content.aspx";
    parent.layer.close(index);
  });
});

posted @ 2017-06-20 08:36  我是怎样变成程序猿的  阅读(3448)  评论(0编辑  收藏  举报