• 浏览器判断


    http://blog.loiy.net/posts/63/

    http://blog.sina.com.cn/s/blog_640da7fe0100qnq9.html


        /*var isIE=document.all?true:false;
        if(isIE){//IE浏览器
            var n = window.event.screenX - window.screenLeft;
            var b = n > document.documentElement.scrollWidth-20;
            if(b && window.event.clientY<0 || window.event.altKey){
                $.post("/index.php/login/clearSession");
                 alert('浏览器已关闭,session清空。');
             }else{
                alert("是刷新而非关闭");
            }
        }
        else{//火狐浏览器
           if(document.documentElement.scrollWidth!=0){
               $.post("/index.php/login/clearSession");
                 alert('浏览器已关闭,session清空。');
             }
            else
                alert("是关闭而非刷新");
        }*/

  • 相关阅读:
    GIT
    curl
    排序算法
    《软件设计师》考点分布
    lua第三方库
    WordPress
    go http
    Unity UI相关总结
    note
    LUA重难点解析
  • 原文地址:https://www.cnblogs.com/yifenghong/p/2400519.html
Copyright © 2020-2023  润新知