def parse_js(js_var):
    """
    通过eval解析Javascript字符串
    :param js_var: Javascript字符串
    :return: dict
    """
    obj = eval(js_var, type('Dummy', (dict,), dict(__getitem__=lambda s, n:
        n))())
    return obj
