style:登录
Showing
1 changed file
with
3 additions
and
7 deletions
... | @@ -20,15 +20,11 @@ function login() { | ... | @@ -20,15 +20,11 @@ function login() { |
20 | }); | 20 | }); |
21 | }) | 21 | }) |
22 | } | 22 | } |
23 | window.onbeforeunload = function () { | ||
24 | delCookie(); | ||
25 | } | ||
23 | $(document).on('click', '.PersonLogin', function () { | 26 | $(document).on('click', '.PersonLogin', function () { |
24 | login(); | 27 | login(); |
25 | window.onbeforeunload = function () { | ||
26 | var n = window.event.screenX - window.screenLeft; | ||
27 | var b = n > document.documentElement.scrollWidth - 20; | ||
28 | if (b && window.event.clientY < 0 || window.event.altKey) { | ||
29 | delAllCookie(); | ||
30 | } | ||
31 | } | ||
32 | }) | 28 | }) |
33 | 29 | ||
34 | // 点击登陆的时候 | 30 | // 点击登陆的时候 | ... | ... |
-
Please register or sign in to post a comment