可能重复:
如何获取查询字符串值?
我有以下查询字符串:
"active_tab=delivered&active_tab=all&active_tab=delivered&active_tab=outstanding
&active_tab=delivered&active_tab=outstanding&active_tab=all&active_tab=delivered&active_tab=outstanding&title_filter=conformance&title_filter=delivering&title_filter=packaging
&title_filter=delivering&title_filter=all&title_filter=delivering&title_filter=all&title_filter=packaging&title_filter=conformance&title_filter=packaging
&title_filter=delivering&title_filter=packaging&title_filter=ordered"
我将如何解析上述查询字符串中的最终title_filter
(“ordered”)和(“delivered”)?active_tab
此外,如果该查询字符串变量不存在,则拥有它 =""