Skip to content

阿里编程题:实现一个方法,拆解URL参数中queryString #64

Description

@sisterAn

入参格式参考:

const url = 'http://sample.com/?a=1&b=2&c=xx&d=#hash';

出参格式参考:

const result = { a: '1', b: '2', c: 'xx', d: '' };
// 拆解URL参数中queryString,返回一个 key - value 形式的 object

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions