Shorten URL by removing empty GET variables and simplifying variable names

后端 未结 4 866
温柔的废话
温柔的废话 2021-01-25 18:19

I am working on a website where an URL is composed after submitting a GET form. The form values are passed as an array of variables of which at least one must b

4条回答
  •  爱一瞬间的悲伤
    2021-01-25 19:19

    Simple method, if jQuery is an option:

    
    
    

提交回复
热议问题