{"size": 923, "ext": "js", "max_stars_repo_path": "web/src/main/webapp/resources/js/common.js", "max_stars_repo_name": "hyblogs/ssm_framework", "max_stars_repo_stars_event_min_datetime": "2019-03-29T08:15:15.000Z", "max_stars_repo_stars_event_max_datetime": "2019-04-03T07:15:47.000Z", "max_issues_repo_path": "web/src/main/webapp/resources/js/common.js", "max_issues_repo_name": "hyblogs/ssm_framework", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "web/src/main/webapp/resources/js/common.js", "max_forks_repo_name": "hyblogs/ssm_framework", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.9761904762, "max_line_length": 62, "alphanum_fraction": 0.4897074756}
//防止右击弹出菜单
// document.oncontextmenu = function(e) { return false; }
//定义每页数据量
var PAGESIZE = 10;

/**
 * 判断目标对象是否为空
 * @param obj 要判断的目标对象
 * @returns {boolean}
 */
function isEmpty(obj) {
    if(obj === undefined) { // 只能用 === 运算来测试某个值是否是未定义的
        return true;
    }
    if(obj == null) { // 等同于 obj === undefined || obj === null
        return true;
    }
    if(obj === ""){ // "",null,undefined
        return true;
    }
    if(!obj){ // "",null,undefined,NobjN
        return true;
    }
    if(!$.trim(obj)){ // "",null,undefined
        return true;
    }
    if (obj instanceof Array) {
        if(obj.length === 0){ // "",[]
            return true;
        }
        if(!obj.length){ // "",[]
            return true;
        }
    }
    if (obj instanceof Object) {
        // 普通对象使用 for...in 判断，有 key 即为 fobjlse
        if($.isEmptyObject(obj)){
            return true;
        }
    }
    return false;
}