layer.msg(resp.msg, { shift: -1, time: 2000 }, function () { window.location.href = document.referrer; });