How to pass an array within a query string?

前端 未结 10 1352
一整个雨季
一整个雨季 2020-11-22 02:35

Is there a standard way of passing an array through a query string?

To be clear, I have a query string with multiple values, one of which would be an array value.

10条回答
  •  攒了一身酷
    2020-11-22 02:52

    You mention PHP and Javascript in your question, but not in the tags. I reached this question with the intention of passing an array to an MVC.Net action.

    I found the answer to my question here: the expected format is the one you proposed in your question, with multiple parameters having the same name.

提交回复
热议问题