Skip to content

url.appendParam(url, params) 接口的小问题 #23

Description

@cssmagic

如果 url 以问号结尾,则生成的结果不完美。

比如:

gearbox.url.appendParam('foo?', {test: 1})
// 现在会得到 'foo?&test=1'
// 但期望的是 'foo?test=1'

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions