Manipulate a url string by adding GET parameters

前端 未结 15 2141
旧巷少年郎
旧巷少年郎 2020-11-29 00:50

I want to add GET parameters to URLs that may and may not contain GET parameters without repeating ? or &.

Example:

If I want t

15条回答
  •  日久生厌
    2020-11-29 01:20

    Try this function to add URL parameters.

    Then you can disable the link when parameter is set so there is no url parameter duplicate.

    
    
     test
     sat
    

提交回复
热议问题