{"size": 351, "ext": "js", "max_stars_repo_path": "dev/assets/h5ds/unit/getCssInStyle.js", "max_stars_repo_name": "1049612128/h5Custom2", "max_stars_repo_stars_event_min_datetime": "2018-07-02T00:36:00.000Z", "max_stars_repo_stars_event_max_datetime": "2019-12-21T19:01:25.000Z", "max_issues_repo_path": "dev/assets/h5ds/unit/getCssInStyle.js", "max_issues_repo_name": "dengjiangit/h5Custom2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dev/assets/h5ds/unit/getCssInStyle.js", "max_forks_repo_name": "dengjiangit/h5Custom2", "max_forks_repo_forks_event_min_datetime": "2018-07-05T07:36:52.000Z", "max_forks_repo_forks_event_max_datetime": "2018-07-05T07:36:52.000Z"}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.9375, "max_line_length": 43, "alphanum_fraction": 0.433048433}
/**
 * 获取css 从 style 中
*/
export function getStyle(style, key) {
    let val = false;
    if(style) {
        let arr = style.split(';');
        arr.forEach(function(elem, index) {
            if(elem.indexOf(key) !== -1) {
                val = elem.split(':')[1];
                val = $.trim(val);
            }
        });
    }
    return val;
}