这段代码有何利弊?

浏览:175 发布日期:2018/04/28 分类:求助交流
<script>
    $(function(){
        $('.logout').click(function(){
            $.ajax({
                url:"{:U('Login/logout')}",
                data:'',
                datatype:'json',
                type:'post',
                success:function(res){
                    if(res.status == 1){
                        alert(res.msg);
                        location = location;
                    }else{
                        alert(res.msg);
                        location = location;
                    }
                }
            })
        })
        
    })
    </script>
最佳答案
评论( 相关
后面还有条评论,点击查看>>