{"size": 694, "ext": "js", "max_stars_repo_path": "eighth_weeks/admin/js/bootstrap.js", "max_stars_repo_name": "tangqilong/jike", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "eighth_weeks/admin/js/bootstrap.js", "max_issues_repo_name": "tangqilong/jike", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "eighth_weeks/admin/js/bootstrap.js", "max_forks_repo_name": "tangqilong/jike", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.76, "max_line_length": 60, "alphanum_fraction": 0.4193083573}
/**
 * Created by Administrator on 2015/11/24.
 */
$(document).ready(function(){
    $('#btn').click(function(e){
        e.preventDefault();
        $.ajax({
            url:'bootstrap.php',
            data:{
                username:$('#username').val(),
                password:$('$password').val()
            },
            dataType:'json',
            type:'post',
            success:function(d){
                alert(d.msg+","+ d.errorCode + "，正在跳转中...");
                window.location.href = d.address;
            },
            error:function(d){
                console.log("登录失败");
                window.location.href = "bootstrap.html";
            }
        });
    });
});